handle errros correctly in the bash tool
This commit is contained in:
parent
80cd75c4fb
commit
9ae05fea12
2 changed files with 6 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package permission
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
|
@ -8,6 +9,8 @@ import (
|
|||
"github.com/kujtimiihoxha/termai/internal/pubsub"
|
||||
)
|
||||
|
||||
var ErrorPermissionDenied = errors.New("permission denied")
|
||||
|
||||
type CreatePermissionRequest struct {
|
||||
ToolName string `json:"tool_name"`
|
||||
Description string `json:"description"`
|
||||
|
|
@ -15,6 +18,7 @@ type CreatePermissionRequest struct {
|
|||
Params any `json:"params"`
|
||||
Path string `json:"path"`
|
||||
}
|
||||
|
||||
type PermissionRequest struct {
|
||||
ID string `json:"id"`
|
||||
SessionID string `json:"session_id"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue