cd3ef8d
fix: do not init MCP client on every tool request (#459)
Click to expand commit body
* fix: do not init mcp client on every call
Right now it inits each mcp client multiple times, one when discovering tools at startup, and then every time we call any tools.
This makes it so we reuse the client from startup
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* wip
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* refactor: even better approach
* fix: unused param
* refactor: more improvements
* fix: if list tools fails, remove client
* fix: improve slice
* chore: smaller changes
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Carlos Alexandro Becker
created
70f479e
chore(legal): @spachava753 has signed the CLA
Charm
created
c990349
Use default permissions of 0600 for crush.json to help protect sensitive
Click to expand commit body
data that is stored in plain text (api keys, etc.)
Fixes #411
Peter Sanchez
created
3b8a8ef
chore(legal): @SyedaAnshrahGillani has signed the CLA
- Replace HasPrefix implementation to use filepath.Rel instead of filepath.Abs
- More reliable method to determine if a path is within a prefix
- Returns false on error conditions
- Preserves same public API for external usage
This addresses review feedback about improving the path checking logic.
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Carlos Alexandro Becker
created
e69b513
fix(onboarding): fix y/n key press on model list and api key field (#402)
Click to expand commit body
A bug on onboarding made it impossible to press "y" and "n" on
onboarding, on both the model list and the API key field.
This also means that on some terminals, like the Windows Terminal,
pasting an API key would supress all "y" and "n" chars present in the
key, because these terminal receives an even for each character being
pressed.
* ci: aur sources
so users can install from source as well.
* Update .goreleaser.yml
* chore: go mod tidy
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: updates
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>