Commit Graph

42 Commits

Author SHA1 Message Date
adamdottv 1901265e05 fix: remove lsp tool 2025-05-01 07:28:37 -05:00
adamdottv d02d2a0b8f feat: lsp discovery 2025-05-01 06:26:20 -05:00
Kujtim Hoxha c7c723ee7f small glob fixes 2025-04-27 18:01:31 +02:00
isaac-scarrott 63617f4345 [feature/ripgrep-glob] Add ripgrep-based file globbing to improve performance
- Introduced `globWithRipgrep` function to perform file globbing using the `rg` (ripgrep) command.
- Updated `globFiles` to prioritize ripgrep-based globbing and fall back to doublestar-based globbing if ripgrep fails.
- Added logic to handle ripgrep command execution, output parsing, and filtering of hidden files.
- Ensured results are sorted by path length and limited to the specified maximum number of matches.
- Modified imports to include `os/exec` and `bytes` for ripgrep integration.
2025-04-27 18:01:31 +02:00
Fuad f83e9980f0 use workingDir if shellInstance is nil otherwise use cwd if shellInstance is not nil 2025-04-27 13:46:59 +02:00
Fuad 869dc96ac1 use provided workingg dir 2025-04-27 13:46:59 +02:00
Fuad 024118757d Fix nil pointer dereference in GetPersistentShell
Added nil check in GetPersistentShell before accessing
shellInstance.isAlive
to prevent panic when newPersistentShell returns nil due to shell
startup
errors. This resolves the "invalid memory address or nil pointer
dereference"
error that was occurring in the shell tool.
2025-04-27 13:46:59 +02:00
Kujtim Hoxha 6e33817b30 change package name 2025-04-24 18:26:16 +02:00
Kujtim Hoxha 6344673f23 init command 2025-04-21 19:53:55 +02:00
Kujtim Hoxha 94271b528f config validation 2025-04-21 14:29:28 +02:00
Kujtim Hoxha 0094dd728c remove old logs 2025-04-21 13:46:32 +02:00
Kujtim Hoxha 77cf4bf688 fix anthropic 2025-04-21 13:42:29 +02:00
Kujtim Hoxha 304d666856 lsp improvements 2025-04-21 13:42:29 +02:00
Kujtim Hoxha d6ab3ab3e9 small fixes 2025-04-21 13:42:29 +02:00
Kujtim Hoxha b7e86f61cd implement patch, update ui, improve rendering 2025-04-21 13:42:27 +02:00
Kujtim Hoxha d6035dc40c Update agent prompt, improve TUI patch UI, remove obsolete tool tests
- Replace and expand agent coder prompt for clarity and safety
- Add patch tool and TUI dialog support for patch diffs
- Sort sidebar modified files by name
- Remove Bash/Edit/Sourcegraph/Write tool tests

🤖 Generated with opencode
Co-Authored-By: opencode <noreply@opencode.ai>
2025-04-21 13:42:02 +02:00
Kujtim Hoxha 91b1a8f064 rename to opencode 2025-04-21 13:42:02 +02:00
Kujtim Hoxha e5eea7b9bf reimplement agent,provider and add file history 2025-04-21 13:42:00 +02:00
Kujtim Hoxha d4f7d48594 fix diff 2025-04-21 13:41:27 +02:00
Kujtim Hoxha 555361d8da remove node dependency and implement diff format 2025-04-21 13:41:27 +02:00
Kujtim Hoxha b3fde7a583 handle errors correctly in the other tools 2025-04-21 13:41:27 +02:00
Kujtim Hoxha e17d587bdc handle errors correctly in the edit tool 2025-04-21 13:41:27 +02:00
Kujtim Hoxha 38d8e6a649 handle errros correctly in the bash tool 2025-04-21 13:41:27 +02:00
Kujtim Hoxha 312688a809 cleanup diff, cleanup agent 2025-04-21 13:41:27 +02:00
Kujtim Hoxha 1990da9d4a add initial git support 2025-04-21 13:38:42 +02:00
Kujtim Hoxha 79deb616d7 implement nested tool calls and initial setup for result metadata 2025-04-21 13:38:42 +02:00
Kujtim Hoxha a6c8769290 small change 2025-04-11 13:21:41 +02:00
Kujtim Hoxha a061dca915 cleanup retry 2025-04-08 20:46:40 +02:00
Kujtim Hoxha c571283ac2 fix typo 2025-04-08 19:41:21 +02:00
Kujtim Hoxha 94923948e1 structure tools the same
- add some tests
- fix some tests
- change how we handle permissions
2025-04-08 19:15:23 +02:00
Kujtim Hoxha 6419973667 Enhance bash tool security and improve permission dialog UI
- Expand safe command list with common dev tools (git, go, node, python, etc.)
- Improve multi-word command detection for better security checks
- Add scrollable viewport to permission dialog for better diff viewing
- Fix command batching in TUI update to properly handle multiple commands

🤖 Generated with termai
Co-Authored-By: termai <noreply@termai.io>
2025-04-04 15:41:25 +02:00
Kujtim Hoxha 3aef4dedcf Improve LSP diagnostics handling for file operations
- Split LSP file notification into separate functions
- Add waitForLspDiagnostics function to wait for diagnostics after file changes
- Move LSP diagnostics to after file operations in edit and write tools
- Fix string splitting in diff generation
- Reduce diagnostics timeout from 10 to 5 seconds

🤖 Generated with termai
Co-Authored-By: termai <noreply@termai.io>
2025-04-04 15:03:50 +02:00
Kujtim Hoxha c185dc84d6 Enhance UI feedback and improve file diff visualization
- Improve diff display in permission dialogs with better formatting
- Add visual indicators for focus changes in permission dialogs
- Increase diagnostics timeout from 5 to 10 seconds
- Fix write tool to show proper diffs for existing files
- Update status component to properly handle messages

🤖 Generated with termai
Co-Authored-By: termai <noreply@termai.io>
2025-04-04 14:36:57 +02:00
Kujtim Hoxha 6bb1c84f7f Improve Sourcegraph tool with context window and fix diagnostics
- Add context_window parameter to control code context display
- Fix LSP diagnostics notification handling with proper async waiting
- Switch to keyword search pattern for better results
- Add Sourcegraph tool to task agent

🤖 Generated with termai
Co-Authored-By: termai <noreply@termai.io>
2025-04-04 14:23:08 +02:00
Kujtim Hoxha eb9877ee20 add sourcegraph tool 2025-04-04 13:31:21 +02:00
Kujtim Hoxha f8e05a0d9a small improvements to the prompt 2025-04-03 20:30:30 +02:00
Kujtim Hoxha 49b593d9dd small fixes 2025-04-03 19:50:31 +02:00
Kujtim Hoxha 795b369219 small fixes 2025-04-03 17:38:28 +02:00
Kujtim Hoxha cfdd687216 add initial lsp support 2025-04-03 17:23:41 +02:00
Kujtim Hoxha afd9ad0560 rework llm 2025-04-01 13:38:54 +02:00
Kujtim Hoxha 904061c243 additional tools 2025-03-26 01:12:30 +01:00
Kujtim Hoxha e7258e38ae initial agent setup 2025-03-23 22:25:31 +01:00