Commit Graph

962 Commits

Author SHA1 Message Date
mykonos-ibiza 43bc71779e feat(agent-run-limits): implement agent run limit checks and UI dialogs
- Added functionality to check the maximum parallel agent runs allowed within a 24-hour period.
- Introduced `AgentRunLimitError` to handle cases where the limit is exceeded.
- Updated API to return appropriate error responses for agent run limits.
- Created `AgentRunLimitDialog` component to inform users when the limit is reached, displaying currently running agents and options to stop them.
- Integrated limit checks into agent initiation and running processes across relevant components.
2025-08-04 22:23:25 +05:30
Chaitanya045 daf0eafb41 refined terminal output 2025-08-04 18:01:59 +05:30
Saumya aa37988106 update agent builder to use composio 2025-08-04 10:43:42 +05:30
Saumya d456817809 Merge branch 'main' of github.com:escapade-mckv/suna into composio-1a 2025-08-04 09:14:02 +05:30
Saumya 354286212d feat: integrate composio 2025-08-04 09:13:20 +05:30
yeyan1996 edf1f7e4c1 fix: clean up unused console log and improve cursor visibility logic in ThreadContent 2025-08-03 16:45:07 -07:00
yeyan1996 91a51b6369 refactor: optimize performance and structure in ThreadPage and PlaybackControls
- Introduced memoization for ToolCallSidePanel and FileViewerModal to enhance rendering efficiency.
- Cleaned up unused useEffect hooks in ThreadPage to improve readability and maintainability.
- Refactored playback timeout management in PlaybackControls to utilize useRef for better performance.
- Enhanced streaming content handling in ThreadContent with a helper function for improved clarity and functionality.
2025-08-03 15:42:58 -07:00
Marko Kraemer 976103d975
Merge pull request #1117 from yeyan1996/fix/streaming
fix: correct JSON formatting in streamAgent for message type checks
2025-08-03 19:26:26 +02:00
kubet 91380386db
Merge pull request #1192 from kubet/feat/smooth-brain-messages
fix: lint
2025-08-03 18:44:46 +02:00
Marko Kraemer 3e8ee151a4
Merge pull request #1132 from sunzhengya/feature/zanyar-fe
feat(data-provider-tool): add enhanced UI components for data provide…
2025-08-03 18:44:30 +02:00
Vukasin da0efcca88 fix: lint 2025-08-03 18:44:11 +02:00
Vukasin 2c833eb910 Merge remote-tracking branch 'upstream/main' into feat/smooth-brain-messages 2025-08-03 16:15:41 +02:00
Vukasin 05fcc4394b fix: cursor pointer 2025-08-03 16:14:22 +02:00
Vukasin 2805fc0233 feat: scroll indicator button to bottom 2025-08-03 16:09:25 +02:00
Vukasin fc47656ec8 fix: overlap issue 2025-08-03 15:18:18 +02:00
yeyan1996 c2df5ed163 feat: enhance UI on the playback page 2025-08-02 22:56:56 -07:00
Saumya 5ca3cffae3 composio integration 2025-08-03 10:46:07 +05:30
Marko Kraemer b90482eb06
Merge pull request #1185 from yeyan1996/feature/playback
feat: enhance PlaybackControls with new navigation buttons
2025-08-03 06:41:40 +02:00
marko-kraemer c9d89f9bf1 fix: update default tab selection in FileOperationToolView component
- Modify the default tab selection logic to display 'preview' for Markdown or HTML files, and 'code' for others.
- This change enhances the user experience by ensuring the appropriate tab is shown based on file type.
2025-08-03 03:38:01 +02:00
yeyan1996 a76018fc4b feat: enhance PlaybackControls with new navigation buttons
- Introduced ForwardButton for advancing playback by one message.
- Added ResetButton to restart playback from the beginning.
- Refactored Play and Reset button implementations into separate components for better readability and maintainability.
- Updated the playback state management to handle new button functionalities.

These changes improve user interaction with playback controls, allowing for more intuitive navigation through messages.
2025-08-02 18:28:27 -07:00
marko-kraemer d31b55fa2f refactor: remove publish tags from AgentsPage and PublishDialog components
- Eliminate the currentTags and publishTags state management from AgentsPage.
- Update openPublishDialog and handleAgentPublish functions to no longer set tags.
- Modify PublishDialog to remove tag input and add an alert for sensitive information warnings.
- Ensure the publishing process remains intact without the tags functionality.

This streamlines the publishing process and enhances user awareness regarding sensitive data.
2025-08-03 02:16:00 +02:00
marko-kraemer adf9326f61 feat: implement JSON agent export/import with improved UX
- 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.
2025-08-03 02:01:31 +02:00
marko-kraemer 286e7edeef wip 2025-08-03 01:15:56 +02:00
marko-kraemer 41ee63719d fix save 2025-08-03 01:07:46 +02:00
marko-kraemer 6e1a604bc9 cleanup autosave 2025-08-03 00:56:27 +02:00
marko-kraemer 1abd9457c7 refactor: replace autosave functionality with manual save handler, mcp add connection improved ui 2025-08-03 00:50:47 +02:00
marko-kraemer 924c1540d2 feat: add template deletion functionality, owner template indicator, owner template filter 2025-08-02 22:25:19 +02:00
Saumya 3e6859e9ca chore: functional composio integration 2025-08-03 01:40:11 +05:30
Marko Kraemer 9d857483eb
Merge branch 'main' into feat/task_list_tool 2025-08-02 20:46:23 +02:00
Marko Kraemer 6287f36244
Merge pull request #1170 from yeyan1996/fix/playback
fix: hide panel when resetting the state of playback
2025-08-02 20:42:51 +02:00
Marko Kraemer a222bd7543
Merge pull request #1171 from yeyan1996/style/cursor
Enhance button styles by adding cursor pointer
2025-08-02 20:42:35 +02:00
Marko Kraemer be0c61945a
Merge pull request #1169 from Chaitanya045/issue-Add-Copy-text-btns-everywhere-in-UI
feat: Add "Copy" text buttons everywhere in UI
2025-08-02 20:40:05 +02:00
Krishav Raj Singh 7632f36a84 fix: typo clear-all 2025-08-02 18:57:57 +05:30
Krishav Raj Singh 4f32ed007a refactor: use section_id 2025-08-02 18:54:59 +05:30
Vukasin 2af96de7a8 fix: scroll to bottom 2025-08-02 13:44:16 +02:00
Saumya b4e8796a3c the functions required for composio 2025-08-02 13:52:17 +05:30
Vukasin a982935e33 fix: make message stream smooth 2025-08-01 23:56:37 +02:00
Krishav 2ca30bec83
Merge branch 'kortix-ai:main' into feat/task_list_tool 2025-08-02 00:26:43 +05:30
Chaitanya045 124fb0e1c8 fixed success and failure messaged to be shown on a toast instead if console log. 2025-08-01 23:56:30 +05:30
Saumya 26e69a24b9 Merge branch 'main' into composio-1a 2025-08-01 21:06:52 +05:30
Bobbie 4a6073a563
Merge pull request #1163 from mykonos-ibiza/kortix-sdk
Feat Kortix SDK
2025-08-01 20:01:07 +05:30
Krishav 04f3543d97
Merge branch 'kortix-ai:main' into feat/task_list_tool 2025-08-01 16:30:23 +05:30
Saumya 6b77a6ccca fix of height of tools section 2025-08-01 15:55:39 +05:30
Krishav 90063d7c59
Merge branch 'kortix-ai:main' into feat/task_list_tool 2025-08-01 13:07:27 +05:30
Saumya 6de7bd0f6c fix agent builder update tool 2025-08-01 13:04:24 +05:30
Saumya 5d126bc75b test composio sdk 2025-08-01 12:54:16 +05:30
yeyan1996 4308f0e0d8 Enhance button styles by adding cursor pointer 2025-07-31 23:30:04 -07:00
yeyan1996 3be4345cbf fix: hide panel when resetting the state of playback 2025-07-31 23:19:08 -07:00
Krishav Raj Singh ab76c95258 ui: include sections 2025-08-01 10:51:52 +05:30
Krishav Raj Singh 3e2f442a17 chore: fix type 2025-08-01 10:51:16 +05:30
Krishav Raj Singh 61d2ad5df4 feat: ui for task list tool 2025-08-01 10:51:16 +05:30
Chaitanya045 a004a1b2ee issue: add copy functionality to file manager and tool-call side panel 2025-08-01 08:20:20 +05:30
Bobbie 0250e786cd
Merge pull request #1165 from escapade-mckv/fix-agent-builder-2a
fix agent builder functionality
2025-08-01 02:16:58 +05:30
Saumya e8972fb788 fix agent builder functionality 2025-08-01 02:15:49 +05:30
mykonos-ibiza 51aecd3e67 Merge branch 'main' into kortix-sdk 2025-08-01 01:47:10 +05:30
Vukasin a1f187b402 Merge remote-tracking branch 'upstream/main' into feat/wip-workflow 2025-07-31 19:41:02 +02:00
Vukasin f1024d8e07 fix: pipedream app connection 2025-07-31 19:40:55 +02:00
Saumya d5dce19023 fix fade in the trigger acordion 2025-07-31 22:06:46 +05:30
Vukasin 1ff01ef83c Merge remote-tracking branch 'upstream/main' into feat/wip-workflow 2025-07-31 18:28:06 +02:00
Vukasin e89cd8d3e7 fix: visual improvements 2025-07-31 18:28:02 +02:00
Saumya edb35d8665 Merge branch 'main' into fix-ux-issues 2025-07-31 21:09:26 +05:30
Saumya 01c24faf2f fix issues inconsistncy 2025-07-31 21:09:16 +05:30
Saumya 4e9fc2bc8c fix empty state in mcp logo 2025-07-31 20:27:34 +05:30
Vukasin 1900bf9b60 fix: workflow saving 2025-07-31 15:37:24 +02:00
mykonos-ibiza 8f6af9d29d Merge branch 'main' into kortix-sdk 2025-07-31 18:47:38 +05:30
mykonos-ibiza 09211d9c55 Refactor UsageLogEntry interface and update truncateString function
- Updated the UsageLogEntry interface to include new fields: message_id, thread_id, created_at, content, total_tokens, estimated_cost, and project_id.
- Modified the truncateString function to handle optional string input, returning an empty string if no input is provided.
2025-07-31 17:37:13 +05:30
mykonos-ibiza a4141365cb
Merge branch 'main' into stripe-add-yearly-commitment-plans 2025-07-31 16:18:21 +05:30
mykonos-ibiza 8176ceba3b Refactor yearly commitment plan mappings to support environment-specific configurations
- Introduced separate mappings for production and staging environments.
- Updated the configuration to dynamically select the appropriate yearly commitment plans based on the current environment mode.
2025-07-31 16:14:57 +05:30
mykonos-ibiza f7c192ab78 Update Stripe pricing IDs for yearly commitment plans in configuration 2025-07-31 16:10:48 +05:30
mykonos-ibiza 2eea1f07aa Update button text and styles for yearly subscription upgrades in pricing section 2025-07-31 15:57:11 +05:30
Saumya 42914cba92 fix ux issues 2025-07-31 12:01:57 +05:30
Saumya 91508d60f1 cleaup code, remove unused endpoints & methods 2025-07-31 09:58:33 +05:30
Saumya bf3904e860 rtefactor backend 2025-07-31 09:07:09 +05:30
mykonos-ibiza a7b142ed74 Implement yearly commitment subscription plans and enhance billing logic
- Added support for yearly commitment plans with associated pricing tiers in the billing service.
- Introduced validation functions to manage plan changes and restrictions based on business rules.
- Updated configuration to include new yearly commitment pricing in both production and staging environments.
- Enhanced frontend components to handle subscription management, including cancellation and reactivation features.
- Refactored billing-related hooks and API calls to accommodate new subscription types and improve error handling.
2025-07-31 02:16:08 +05:30
marko-kraemer 1f73aa25ef rm temp readme 2025-07-30 22:18:51 +02:00
Saumya b36715d2b6 fix agent creation 2025-07-30 23:37:36 +05:30
Vukasin 762f18f96f Merge remote-tracking branch 'upstream/main' into feat/wip-workflow 2025-07-30 17:09:32 +02:00
Vukasin 83ef975c5f fix: 2025-07-30 15:11:36 +02:00
Frank An 30eae454f5
fix: correct textarea auto-resize behavior and scroll appearance 2025-07-30 17:22:12 +08:00
Zanyar 88dc5dfc44 feat(data-provider-tool): add enhanced UI components for data provider tool views 2025-07-30 15:01:02 +08:00
Saumya 080a0b1cef suna agent installation cleanup 2025-07-30 12:29:25 +05:30
Saumya 26fd18b6b8 cleanup agent builder tools 2025-07-30 11:37:34 +05:30
Saumya 8e1cce5cbd refactor versioning & run.py 2025-07-30 11:20:05 +05:30
Vukasin 612e5c6d74 fix: util parsing and ajust structure 2025-07-29 23:34:02 +02:00
Vukasin 8ee6d79858 feat: workflow ajustments 2025-07-29 22:57:58 +02:00
mykonos-ibiza 02b844b2e7 style(api-keys): improve UI consistency and accessibility
- Added margin classes to labels for better spacing and alignment.
- Updated card header styling for a cleaner look.
- Enhanced text visibility by adding margin to description labels.
- Simplified the API key creation success message for clarity.
- Adjusted button labels for improved user experience.
2025-07-29 23:25:47 +05:30
yeyan1996 45947eb770 refactor: continue running the agent when status is thread_run_end 2025-07-29 10:20:46 -07:00
mykonos-ibiza 8869138a7e feat(api-keys): implement API key management system
- Added a new API keys service with endpoints for creating, listing, revoking, and deleting API keys.
- Integrated API key validation and caching for performance.
- Updated backend configuration to include API key secret and throttling settings.
- Created frontend components for managing API keys, including a user interface for creating and displaying keys.
- Introduced a new database migration for the API keys table with necessary constraints and security policies.
- Enhanced authentication methods to support API key usage alongside JWT.
2025-07-29 19:38:37 +05:30
Marko Kraemer e7ad67caef
Merge pull request #1116 from dat-lequoc/ai-iteration-20250728-231518
Morph AI Edit_file, better prompting ; Update UI as well, but need more check on frontend
2025-07-29 13:00:44 +02:00
Bobbie 5e02569639
Merge pull request #1118 from escapade-mckv/refactor-backend-2
refactor & cleanup templates
2025-07-29 11:26:15 +05:30
Saumya 488d184939 refactor & cleanup templates 2025-07-29 11:25:18 +05:30
yeyan1996 4c34f99b95 fix: correct JSON formatting in streamAgent for message type checks 2025-07-28 20:47:47 -07:00
LE Quoc Dat 37f3fb866d AI: there're duplication of columns when it comes to unified diff UI.
also in unified diff, you don't need to show the removed line (red). Green is like concise enough to show the change,
2025-07-28 22:48:57 +02:00
Vukasin 6148b199ae feat: wip workflow design 2025-07-28 22:44:31 +02:00
LE Quoc Dat 120825d3f1 AI:
0.910 > suna@0.1.0 build
0.910 > next build
0.910
1.845    ▲ Next.js 15.3.3
1.845    - Environments: .env.local
1.846
1.871    Creating an optimized production build ...
43.91 Failed to compile.
43.91
43.91 ./src/components/thread/tool-views/file-operation/_utils.ts
43.91 Module parse failed: Identifier 'parseContent' has already been declared (243:6)
43.91 File was processed with these loaders:
43.91  * ./node_modules/next/dist/build/webpack/loaders/next-flight-client-module-loader.js
43.91  * ./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js
43.91 You may need an additional loader to handle the result of these loaders.
43.91 |     };
43.91 | };
43.91 > const parseContent = (content)=>{
43.91 |     if (typeof content === 'string') {
43.91 |         try {
43.91
43.91 Import trace for requested module:
43.91 ./src/components/thread/tool-views/file-operation/_utils.ts
43.91 ./src/components/thread/tool-views/file-operation/FileEditToolView.tsx
43.91 ./src/components/thread/tool-views/wrapper/ToolViewRegistry.tsx
43.91 ./src/components/thread/tool-views/wrapper/index.ts
43.91 ./src/components/thread/tool-call-side-panel.tsx
43.91 ./src/app/share/[threadId]/page.tsx
43.91
43.91
43.91 > Build failed because of webpack errors
43.95 npm notice
43.95 npm notice New major version of npm available! 10.9.2 -> 11.5.1
43.95 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.5.1
43.95 npm notice To update run: npm install -g npm@11.5.1
43.95 npm notice
------
Dockerfile:45
2025-07-28 22:36:13 +02:00
LE Quoc Dat ef980353ba AI: How can we stream the edit_file tool when it generating like create_file ? Also the edit_file tool show this
"""Invalid File Edit

Could not extract the file changes from the tool result."""

Check the state of code base and make to sure implement fully
2025-07-28 22:22:38 +02:00
LE Quoc Dat d4619f0744 AI: How can we stream the edit_file tool when it generating like create_file ? Also the edit_file tool show this
"""Invalid File Edit

Could not extract the file changes from the tool result."""

Check the state of code base and make to sure implement fully
2025-07-28 22:19:34 +02:00
LE Quoc Dat fe1e1c6fb4 AI: How can we stream the edit_file tool when it generating like create_file ? Also the edit_file tool show this
"""Invalid File Edit

Could not extract the file changes from the tool result."""

Check the state of code base and make to sure implement fully
2025-07-28 22:16:20 +02:00
LE Quoc Dat 7ef8a624be AI: How can we stream the edit_file tool when it generating like create_file ? Also the edit_file tool show this
"""Invalid File Edit

Could not extract the file changes from the tool result."""

Check the state of code base and make to sure implement fully
2025-07-28 22:12:46 +02:00
LE Quoc Dat 066a43d951 AI: How can we stream the edit_file tool when it generating like create_file ? Also the edit_file tool show this
"""Invalid File Edit

Could not extract the file changes from the tool result."""

Check the state of code base and make to sure implement fully
2025-07-28 22:09:32 +02:00