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.
|
/// The URI endpoint for the SSE extension.
|
||||||
uri: String,
|
uri: String,
|
||||||
/// List of environment variable keys. The server will fetch their values from the keyring.
|
/// List of environment variable keys. The server will fetch their values from the keyring.
|
||||||
|
#[serde(default)]
|
||||||
env_keys: Vec<String>,
|
env_keys: Vec<String>,
|
||||||
},
|
},
|
||||||
/// Standard I/O (stdio) extension.
|
/// Standard I/O (stdio) extension.
|
||||||
@@ -31,8 +32,10 @@ enum ExtensionConfigRequest {
|
|||||||
/// The command to execute.
|
/// The command to execute.
|
||||||
cmd: String,
|
cmd: String,
|
||||||
/// Arguments for the command.
|
/// Arguments for the command.
|
||||||
|
#[serde(default)]
|
||||||
args: Vec<String>,
|
args: Vec<String>,
|
||||||
/// List of environment variable keys. The server will fetch their values from the keyring.
|
/// List of environment variable keys. The server will fetch their values from the keyring.
|
||||||
|
#[serde(default)]
|
||||||
env_keys: Vec<String>,
|
env_keys: Vec<String>,
|
||||||
},
|
},
|
||||||
/// Built-in extension that is part of the goose binary.
|
/// Built-in extension that is part of the goose binary.
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ export async function addExtensionFromDeepLink(url: string, navigate: NavigateFu
|
|||||||
args,
|
args,
|
||||||
description,
|
description,
|
||||||
enabled: true,
|
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
|
// Store the extension config regardless of env vars status
|
||||||
|
|||||||
Reference in New Issue
Block a user