fix: fix extension deep link request format (#754)

This commit is contained in:
Salman Mohammed
2025-01-24 17:25:59 -05:00
committed by GitHub
parent 2eb60c675c
commit 7c1da0dd4b
2 changed files with 4 additions and 1 deletions

View File

@@ -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.

View File

@@ -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