mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-23 07:24:24 +01:00
fix: fix extension deep link request format (#754)
This commit is contained in:
@@ -21,6 +21,7 @@ enum ExtensionConfigRequest {
|
||||
/// The URI endpoint for the SSE extension.
|
||||
uri: String,
|
||||
/// List of environment variable keys. The server will fetch their values from the keyring.
|
||||
#[serde(default)]
|
||||
env_keys: Vec<String>,
|
||||
},
|
||||
/// Standard I/O (stdio) extension.
|
||||
@@ -31,8 +32,10 @@ enum ExtensionConfigRequest {
|
||||
/// The command to execute.
|
||||
cmd: String,
|
||||
/// Arguments for the command.
|
||||
#[serde(default)]
|
||||
args: Vec<String>,
|
||||
/// List of environment variable keys. The server will fetch their values from the keyring.
|
||||
#[serde(default)]
|
||||
env_keys: Vec<String>,
|
||||
},
|
||||
/// Built-in extension that is part of the goose binary.
|
||||
|
||||
@@ -290,7 +290,7 @@ export async function addExtensionFromDeepLink(url: string, navigate: NavigateFu
|
||||
args,
|
||||
description,
|
||||
enabled: true,
|
||||
env_keys: Object.keys(envs).length > 0 ? Object.keys(envs) : undefined,
|
||||
env_keys: Object.keys(envs).length > 0 ? Object.keys(envs) : [],
|
||||
};
|
||||
|
||||
// Store the extension config regardless of env vars status
|
||||
|
||||
Reference in New Issue
Block a user