Commit Graph

1944 Commits

Author SHA1 Message Date
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
LE Quoc Dat d6f3800076 AI:
./src/components/thread/tool-views/file-operation/FileEditToolView.tsx:41:11
Type error: Object literal may only specify known properties, and 'color' does not exist in type 'ReactDiffViewerStylesVariables'.

  39 |       variables: {
  40 |         dark: {
> 41 |           color: '#e2e8f0',
     |           ^
  42 |           background: '#09090b',
  43 |           addedBackground: '#104a32',
  44 |           addedColor: '#6ee7b7',
Next.js build worker exited with code: 1 and signal: null
2025-07-28 21:15:33 +02:00
LE Quoc Dat 96e77cfcbf AI:
./src/components/thread/tool-views/file-operation/FileEditToolView.tsx:41:11
Type error: Object literal may only specify known properties, and 'color' does not exist in type 'ReactDiffViewerStylesVariables'.

  39 |       variables: {
  40 |         dark: {
> 41 |           color: '#e2e8f0',
     |           ^
  42 |           background: '#09090b',
  43 |           addedBackground: '#104a32',
  44 |           addedColor: '#6ee7b7',
Next.js build worker exited with code: 1 and signal: null
2025-07-28 21:13:37 +02:00
LE Quoc Dat ce0e35c4e5 AI:
./src/components/thread/tool-views/file-operation/FileEditToolView.tsx
Attempted import error: 'generateLineDiff' is not exported from './_utils' (imported as 'generateLineDiff').

Import trace for requested module:
./src/components/thread/tool-views/file-operation/FileEditToolView.tsx
./src/components/thread/tool-views/wrapper/ToolViewRegistry.tsx
./src/components/thread/tool-views/wrapper/index.ts
./src/components/thread/tool-call-side-panel.tsx
./src/app/share/[threadId]/page.tsx

./src/components/thread/tool-views/file-operation/FileEditToolView.tsx
Attempted import error: 'calculateDiffStats' is not exported from './_utils' (imported as 'calculateDiffStats').

Import trace for requested module:
./src/components/thread/tool-views/file-operation/FileEditToolView.tsx
./src/components/thread/tool-views/wrapper/ToolViewRegistry.tsx
./src/components/thread/tool-views/wrapper/index.ts
./src/components/thread/tool-call-side-panel.tsx
./src/app/share/[threadId]/page.tsx

 ⚠ Compiled with warnings in 40.0s

./src/components/thread/tool-views/file-operation/FileEditToolView.tsx
Attempted import error: 'generateLineDiff' is not exported from './_utils' (imported as 'generateLineDiff').

Import trace for requested module:
./src/components/thread/tool-views/file-operation/FileEditToolView.tsx
./src/components/thread/tool-views/wrapper/ToolViewRegistry.tsx
./src/components/thread/tool-views/wrapper/index.ts
./src/components/thread/tool-call-side-panel.tsx
./src/app/share/[threadId]/page.tsx

./src/components/thread/tool-views/file-operation/FileEditToolView.tsx
Attempted import error: 'calculateDiffStats' is not exported from './_utils' (imported as 'calculateDiffStats').

Import trace for requested module:
./src/components/thread/tool-views/file-operation/FileEditToolView.tsx
./src/components/thread/tool-views/wrapper/ToolViewRegistry.tsx
./src/components/thread/tool-views/wrapper/index.ts
./src/components/thread/tool-call-side-panel.tsx
./src/app/share/[threadId]/page.tsx
2025-07-28 21:10:59 +02:00
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
Bobbie 5c21cf6276
Merge pull request #1114 from escapade-mckv/refactor-backend-2
refactor credentials codebase
2025-07-28 22:07:00 +05:30
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
LE Quoc Dat e4d7ffe066 npm i 2025-07-28 18:07:58 +02:00
marko-kraemer bb60569193 wip 2025-07-28 16:38:53 +02:00
Bobbie c98258eef3
Merge pull request #1112 from escapade-mckv/refactor-backend-2
fix trigger import error
2025-07-28 18:06:50 +05:30
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
Bobbie 11c3c26048
Merge pull request #1108 from escapade-mckv/refactor-backend-2
refactor triggers
2025-07-28 16:11:06 +05:30
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 d8a7cd1798
Merge pull request #1090 from yeyan1996/fix/debug-mode
fix: stringify message in debug mode
2025-07-28 08:38:16 +02:00
Marko Kraemer 8b3f020794
Merge pull request #1089 from yeyan1996/fix/package
fix: phantom dependency
2025-07-28 08:37:55 +02:00
Bobbie 822ff42321
Merge pull request #1105 from escapade-mckv/fix-ux-issues
Fix ux issues
2025-07-28 11:51:56 +05:30
Saumya 1e501a12be Merge branch 'extend-workflows-ui' into fix-ux-issues 2025-07-28 11:50:40 +05:30
Saumya fdbf64769a Merge branch 'main' of github.com:escapade-mckv/suna into extend-workflows-ui 2025-07-28 11:50:12 +05:30
Saumya f7fd1296bf improve ux a bit 2025-07-28 11:49:24 +05:30
Marko Kraemer 460c6f16cd
Merge pull request #1104 from kortix-ai/revert-1101-revert-1092-add-gemini-api
Revert "Revert random PR merged"
2025-07-28 08:15:06 +02:00
Marko Kraemer 010f0ab426
Revert "Revert random PR merged" 2025-07-28 08:14:58 +02:00
Marko Kraemer 87727af1a6
Merge pull request #1103 from kortix-ai/revert-1102-revert-1096-add-cursor-rules
Revert "Revert "add cursor rules""
2025-07-28 08:14:40 +02:00
Marko Kraemer 3a127de226
Revert "Revert "add cursor rules"" 2025-07-28 08:14:32 +02:00
Marko Kraemer 785964d093
Merge pull request #1102 from kortix-ai/revert-1096-add-cursor-rules
Revert "add cursor rules"
2025-07-28 08:08:50 +02:00
Marko Kraemer d47dd64ff9
Revert "add cursor rules" 2025-07-28 08:08:40 +02:00
Marko Kraemer 7844380ea2
Merge pull request #1101 from kortix-ai/revert-1092-add-gemini-api
Revert random PR merged
2025-07-28 08:07:56 +02:00
Marko Kraemer 454f0d3878
Revert "add support for Google Gemini API integration" 2025-07-28 08:07:42 +02:00
kubet f6f7d8077d
Merge pull request #1100 from kubet/feat/visual-improvements-and-fixes
fix: visual improvements
2025-07-27 22:13:15 +02:00
Vukasin d777b5b735 fix: visual improvements 2025-07-27 22:11:40 +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
Bobbie 7de81b4d2f
Merge pull request #1096 from mykonos-ibiza/add-cursor-rules
add cursor rules
2025-07-27 12:51:30 +05:30
Bobbie f1f202bcb3
Merge pull request #1092 from mykonos-ibiza/add-gemini-api
add support for Google Gemini API integration
2025-07-27 12:50:55 +05:30
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 5d2eb11019 add env example fe again 2025-07-27 04:10:19 +02:00
Marko Kraemer 76968e5044
Merge pull request #1097 from kortix-ai/cleanup
Cleanup wip
2025-07-27 01:47:16 +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