mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-19 15:14:21 +01:00
feat: use the same permission flow for enable extensions (#2302)
This commit is contained in:
@@ -3,8 +3,7 @@ use console::style;
|
||||
use goose::agents::extension::ToolInfo;
|
||||
use goose::agents::extension_manager::get_parameter_names;
|
||||
use goose::agents::platform_tools::{
|
||||
PLATFORM_ENABLE_EXTENSION_TOOL_NAME, PLATFORM_LIST_RESOURCES_TOOL_NAME,
|
||||
PLATFORM_READ_RESOURCE_TOOL_NAME,
|
||||
PLATFORM_LIST_RESOURCES_TOOL_NAME, PLATFORM_READ_RESOURCE_TOOL_NAME,
|
||||
};
|
||||
use goose::agents::Agent;
|
||||
use goose::agents::{extension::Envs, ExtensionConfig};
|
||||
@@ -1015,8 +1014,7 @@ pub async fn configure_tool_permissions_dialog() -> Result<(), Box<dyn Error>> {
|
||||
.await
|
||||
.into_iter()
|
||||
.filter(|tool| {
|
||||
tool.name != PLATFORM_ENABLE_EXTENSION_TOOL_NAME
|
||||
&& tool.name != PLATFORM_LIST_RESOURCES_TOOL_NAME
|
||||
tool.name != PLATFORM_LIST_RESOURCES_TOOL_NAME
|
||||
&& tool.name != PLATFORM_READ_RESOURCE_TOOL_NAME
|
||||
})
|
||||
.map(|tool| {
|
||||
|
||||
Reference in New Issue
Block a user