Commit Graph

940 Commits

Author SHA1 Message Date
mykonos-ibiza 1b608c006d Update Stripe yearly commitment pricing IDs in configuration
- Modified the configuration file to update the Stripe pricing IDs for yearly commitment plans in the production environment.
- Ensured consistency with the latest pricing structure for subscription tiers.
2025-07-31 16:09:33 +05:30
Saumya 91508d60f1 cleaup code, remove unused endpoints & methods 2025-07-31 09:58:33 +05:30
Saumya bbfbc3cea5 Merge branch 'fix-mcp-connection' into backend-cleanup 2025-07-31 09:18:54 +05:30
Saumya 1701eb421c fix mcp connection error for tools 2025-07-31 09:18:31 +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
mykonos-ibiza 6b137e4fc8 Update stripe dependency from version 12.0.1 to 11.6.0 in pyproject.toml and uv.lock 2025-07-31 02:14:02 +05:30
marko-kraemer 1f73aa25ef rm temp readme 2025-07-30 22:18:51 +02:00
marko-kraemer 0f36b6e953 update tool decorator to have usage_example 2025-07-30 22:13:46 +02:00
Bobbie 91e1468f39
Merge pull request #1140 from escapade-mckv/fix-agent-creation
fix agent creation
2025-07-30 23:38:55 +05:30
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
Marko Kraemer d5159f5fba
Merge pull request #1111 from kortix-ai/agentpress-sdk-refactor
remove legacy XML schema & agentpress sdk example
2025-07-30 17:09:29 +02:00
marko-kraemer 99e4ba0574 merge 2025-07-30 16:54:54 +02:00
marko-kraemer ba455ef5f7 Merge branch 'main' into agentpress-sdk-refactor 2025-07-30 16:33:11 +02:00
Bobbie c005d6f166
Merge pull request #1137 from escapade-mckv/pipedream-refactor-2a
Pipedream refactor 2a
2025-07-30 19:53:20 +05:30
Saumya a6058b94ad refactor pipedream codebase 2025-07-30 19:52:31 +05:30
marko-kraemer f140634859 wip 2025-07-30 16:10:42 +02:00
Saumya 773987bebc refactor pipedream 2025-07-30 19:33:43 +05:30
Saumya f095affcf1 refactor pipedream codebase 2025-07-30 17:57:26 +05:30
Saumya bf92b5b831 mcp module refactor 2025-07-30 14:36:26 +05:30
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
Saumya f848d5c10f refactor versioning 2025-07-29 23:41:22 +05:30
Saumya 8a859038c3 Merge branch 'main' into refactor-backend-2 2025-07-29 22:18:10 +05:30
mykonos-ibiza 01c0178531 fix(api): update allowed methods in CORS middleware to include PATCH
- Modified the CORS middleware configuration to support the PATCH method, enhancing API flexibility for client requests.
2025-07-29 19:43:32 +05:30
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 0063d72f2a wip 2025-07-29 14:45:21 +02:00
marko-kraemer b876a4007f wip 2025-07-29 14:33:32 +02:00
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
mykonos-ibiza 7050490d03 feat(api): enhance thread creation and agent functionality
- Updated the `create_thread` endpoint to set a default name if none is provided.
- Modified the `Agent` class to use a dictionary for `agentpress_tools` instead of a custom type.
- Improved the `LocalKVStore` initialization to use a hidden filename.
- Added a new weather retrieval tool to the MCP.
- Updated agent and thread setup in the main function for better clarity and functionality.
- Refactored message handling in the `ThreadsClient` to use query parameters for message posting.
2025-07-29 14:23:12 +05:30
Saumya 46a028ed61 cleanup 2025-07-29 12:45:20 +05:30
mykonos-ibiza 307a9a80ae Merge branch 'main' into kortix-sdk 2025-07-29 12:20:11 +05:30
Saumya 488d184939 refactor & cleanup templates 2025-07-29 11:25:18 +05:30
LE Quoc Dat 1211eefbdd more guide, and edit_tool grind preference 2025-07-28 23:47:08 +02:00
LE Quoc Dat c8c71b5936 AI: the AI can't still use the AI edit tool correctly. we should update the prompt a bit, and also make the better example :
the authenticate_user; pls add something in the top like import, so we can do like this :
"""
// ... existing imports ...
import something
// ... existing code ...
<auth func() ... >
// ... existing code
"""

add another example on top of it : todo list ; where we show it's convinient for checking some scattered todo box .
2025-07-28 23:17:37 +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 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 0215b81b09 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:06:04 +02:00
LE Quoc Dat 1fbac3bc15 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 21:59:07 +02:00
LE Quoc Dat cb424d8fe7 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 21:55:45 +02:00
LE Quoc Dat deb442cbf7 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 21:40:07 +02:00
mykonos-ibiza 57aa08fdaa feat(sdk): restructure SDK into new directory with updated API and models
- Moved existing components to a new `sdk` directory for better organization.
- Introduced new API structure for agent and thread management.
- Added models for tools and messages to enhance functionality.
- Implemented a local key-value store for persistent data management.
- Updated README and project files to reflect new structure and usage.
2025-07-29 00:41:33 +05:30
LE Quoc Dat 9a0dc4e200 AI: can we streamline the edit-file just like the create_file tool, in the front end ?
like stream the code-edit output of the agent; Then we should be able to show the diff as well, when the tool complete. We get the original file content, and the full updated code (output of morph) and some how send it to the front end.

the front end should show this properly , concisely so user can see the changes in green / red.

This shouldn't change the content feed to the model btw. Like it will pollute the context.

make a plan what to do first, not make changes yet
2025-07-28 20:46:21 +02:00
LE Quoc Dat 2608ad2ef1 prompting 2025-07-28 19:40:18 +02:00
marko-kraemer 696dd3722f wip 2025-07-28 19:25:52 +02:00
LE Quoc Dat 1d9bcbd202 AI: we need instruct the agent to Always use edit_tool. it doesn't do this for now. Like it prefer str_replace 2025-07-28 18:46:41 +02:00
Saumya e4d24d9038 refactor credentials codebase 2025-07-28 22:06:07 +05:30
LE Quoc Dat 1eff96929a AI: the edit tool is very good now, we need to make the model uses more this tool.
We still keep the tool itself, but in the prompt, we remove the need of writing str_replace and full rewrite, in the example, or prompt. because they will have the tools context as well. you understand ?
2025-07-28 18:24:29 +02:00
LE Quoc Dat 6b93e911d5 fix morph tool 2025-07-28 18:09:22 +02:00
marko-kraemer bb60569193 wip 2025-07-28 16:38:53 +02:00
Saumya 46010875d8 fix trigger import error 2025-07-28 18:05:59 +05:30
marko-kraemer 4bce5d799f wip 2025-07-28 14:08:56 +02:00
marko-kraemer b9a4beb136 wip 2025-07-28 13:13:42 +02:00
marko-kraemer 2b31379b89 wip 2025-07-28 12:53:36 +02:00
Saumya 3fb032185c refactor triggers 2025-07-28 15:46:29 +05:30
marko-kraemer a660919dec wip 2025-07-28 11:53:10 +02:00
Marko Kraemer 010f0ab426
Revert "Revert random PR merged" 2025-07-28 08:14:58 +02:00
Marko Kraemer 454f0d3878
Revert "add support for Google Gemini API integration" 2025-07-28 08:07:42 +02:00
marko-kraemer 2819840fb6 rem wip 2025-07-27 22:09:01 +02:00
marko-kraemer 1545af26f6 updated kb routes 2025-07-27 17:09:30 +02:00
marko-kraemer c22227a8b7 add back kb routes 2025-07-27 17:02:20 +02:00
mykonos-ibiza ad9c1dabc8 add support for Google Gemini API integration
- Introduced GEMINI_API_KEY in setup and environment files.
- Updated SetupWizard to include Google Gemini as a supported LLM provider.
- Adjusted model selection logic to accommodate Gemini models.
- Modified billing and configuration files to handle Gemini model pricing and aliases.
- Updated documentation to reflect the addition of GEMINI_API_KEY.
2025-07-27 12:49:56 +05:30
marko-kraemer aed291e7c3 wip 2025-07-27 05:53:25 +02:00
marko-kraemer e38d8f327e wip 2025-07-27 05:15:33 +02:00
marko-kraemer 3405c27ef6 wip 2025-07-27 01:22:56 +02:00
marko-kraemer ef087747ab rem legacy workflows, db unused schema cleanup wip 2025-07-26 22:31:31 +02:00
Saumya ec5e0b7560 improve system promot for self-config 2025-07-26 21:45:06 +05:30
mykonos-ibiza 8062aa18d1 fix(auth_utils): enhance string comparison safety by handling None values 2025-07-26 20:07:00 +05:30
mykonos-ibiza 562c05e411
Merge branch 'kortix-ai:main' into feat/headless-apis 2025-07-26 18:48:50 +05:30
mykonos-ibiza 37f8e63cf1 feat(deepai): add deepai specific endpoints 2025-07-26 18:47:22 +05:30
Saumya 845c17d968 fix agent builder tool calls 2025-07-26 11:04:07 +05:30
marko-kraemer 39cf6c13a5 Fix billing error for Grok models by adding x-ai model aliases and pricing
- Added 'x-ai/grok-4' alias to xai/grok-4 model configuration
- Added OpenRouter x-ai model pricing support in constants generation
- Resolves LiteLLM 'LLM Provider NOT provided' errors in billing system
- Ensures proper token cost calculation for all Grok model variations
2025-07-25 20:17:02 +02:00
Marko Kraemer 159b128ecd
Merge pull request #1057 from dat-lequoc/ai-iteration-20250724-131301
Add FAST APPLY -- Morph LLM -- edit_file tool
2025-07-25 18:24:06 +02:00
Marko Kraemer 426017931e
Merge pull request #1055 from yangsijie666/fix/shell-tool-command-completion
fix: improve command completion detection in shell tool
2025-07-25 16:41:00 +02:00
Saumya 3f54a318ff improve error handling in update agent 2025-07-25 15:20:25 +05:30
Saumya 40a145552f Merge branch 'main' of github.com:escapade-mckv/suna into extend-agent-builder 2025-07-25 13:25:11 +05:30
Saumya 8150ce94a1 feat: extend agent builder for Suna 2025-07-25 13:24:34 +05:30
Bobbie f4dc33ab13
Merge pull request #1056 from mykonos-ibiza/fix/2fa
fix: migrate MFA functionality to frontend and remove backend MFA endpoints
2025-07-25 13:02:01 +05:30
mykonos-ibiza f4df0087b1 fix model name for anthropic model before fallback to OpenRouter 2025-07-25 12:59:08 +05:30
Marko Kraemer d72f84240a
Merge pull request #938 from KrishavRajSingh/krishav/feat/manage_key_ui
Krishav/feat/manage key UI
2025-07-25 00:22:35 +02:00
Marko Kraemer 4b20eb983b
Merge pull request #1060 from KrishavRajSingh/krishav/fix/half_finished_response 2025-07-24 18:02:50 +02:00
Krishav Raj Singh f99027b848 remove multiple var should_auto_continue 2025-07-24 20:51:21 +05:30
Bobbie 4759b89871
fix Dockerfile too many workers 2025-07-24 20:49:51 +05:30
Krishav Raj Singh e4a6f5a1ef fix: auto continue response if finish_reason is length 2025-07-24 20:22:44 +05:30
LE Quoc Dat 93724249e7 AI: Add to all the related doc : morphllm as a provider; make it optional step when setting up by getting key at this :
https://morphllm.com/api-keys

when setting up, user should be able to choose to go to morphllm to get a key; or provide open router apikey (if not already in the previous step)
2025-07-24 13:14:52 +02:00
LE Quoc Dat 09751be00b AI: when it comes to morph api key:
this is the correct endpoint : """Python

Copy

Ask AI
from openai import OpenAI

client = OpenAI(
    api_key="your-morph-api-key",
    base_url="https://api.morphllm.com/v1"
)"""
2025-07-24 13:04:46 +02:00
LE Quoc Dat 430c11ae8b AI: when it comes to morph api key:
- default we use morph api, with morph endpoint.
- If morph api key is not set, fall back to open router
2025-07-24 12:58:55 +02:00
LE Quoc Dat fadbf63a2f AI: in the prompt , can you fix the example of making changes to a file? We should make in value the edit_file, not replace string or full rewrite.
so like we should show the full_write when start, then edit for normal cases, then S/R for single block, or easy stuff
2025-07-24 12:52:57 +02:00
LE Quoc Dat b1ac5793ba edit_file 2025-07-24 12:46:57 +02:00
Saumya 1e6488ca45 agent builder works with config 2025-07-24 15:15:38 +05:30
mykonos-ibiza fc47e89da8 migrate MFA functionality to frontend and remove backend MFA endpoints 2025-07-24 14:16:04 +05:30
杨斯杰 a08f400db2 fix: improve command completion detection in shell tool
- Replace simple marker check with precise character-by-character comparison
- Skip newlines during marker matching from end to start
- Add echo detection to prevent false positives when command just started
- Optimize English comments for better code readability
2025-07-24 11:17:44 +08:00
Saumya 7d3479d171 make config the single source of truth 2025-07-24 00:15:53 +05:30
Saumya bdd7a005a8 fix: tool calls of custom agents 2025-07-23 20:13:00 +05:30
Saumya 58ab4ace21 fix migrations 2025-07-23 15:07:17 +05:30
Saumya 030ffe23a3 fix suna install on oauth 2025-07-23 14:52:44 +05:30
Saumya 6b99777265 treat suna as a custom agent 2025-07-23 13:20:20 +05:30