Changeset 0.28.7 (#193)
This commit is contained in:
@@ -899,10 +899,10 @@ func (h *CompletionHandler) ListTools(c *gin.Context) {
|
||||
|
||||
// Browser extension tools
|
||||
if h.hub != nil && h.hub.IsConnected(userID) {
|
||||
exts, err := h.stores.Extensions.ListForUser(c.Request.Context(), userID)
|
||||
pkgs, err := h.stores.Packages.ListForUser(c.Request.Context(), userID)
|
||||
if err == nil {
|
||||
for _, ext := range exts {
|
||||
if ext.Tier != "browser" {
|
||||
for _, pkg := range pkgs {
|
||||
if pkg.Tier != "browser" {
|
||||
continue
|
||||
}
|
||||
var manifest struct {
|
||||
@@ -912,7 +912,7 @@ func (h *CompletionHandler) ListTools(c *gin.Context) {
|
||||
Description string `json:"description"`
|
||||
} `json:"tools"`
|
||||
}
|
||||
if err := json.Unmarshal(ext.Manifest, &manifest); err != nil {
|
||||
if err := json.Unmarshal(marshalManifest(pkg.Manifest), &manifest); err != nil {
|
||||
continue
|
||||
}
|
||||
for _, t := range manifest.Tools {
|
||||
|
||||
Reference in New Issue
Block a user