Merge pull request #4992 from continuedev/nate/alwaysUseProxy

option to always use proxy
This commit is contained in:
Nate Sesti 2025-04-04 21:53:25 -07:00 • committed by GitHub
commit 69296acefc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 4 deletions

View file

@ -3,7 +3,7 @@ pluginGroup=com.github.continuedev.continueintellijextension
pluginName=continue-intellij-extension
pluginRepositoryUrl=https://github.com/continuedev/continue
# SemVer format -> https://semver.org
pluginVersion=1.0.11
pluginVersion=1.0.12
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild=223
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension

View file

@ -2,7 +2,7 @@
"name": "continue",
"icon": "media/icon.png",
"author": "Continue Dev, Inc",
"version": "1.1.20",
"version": "1.1.21",
"repository": {
"type": "git",
"url": "https://github.com/continuedev/continue"

View file

@ -1,6 +1,6 @@
{
"name": "@continuedev/config-yaml",
"version": "1.0.71",
"version": "1.0.72",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View file

@ -146,6 +146,7 @@ function extractFQSNMap(
async function extractRenderedSecretsMap(
rawContent: string,
platformClient: PlatformClient,
alwaysUseProxy: boolean = false,
): Promise<Record<string, string>> {
// Get all template variables
const templateVars = getTemplateVariables(rawContent);
@ -165,7 +166,7 @@ async function extractRenderedSecretsMap(
}
// User secrets are rendered
if ("value" in secretResult) {
if ("value" in secretResult && !alwaysUseProxy) {
map[encodeFQSN(secretResult.fqsn)] = secretResult.value;
} else {
// Other secrets are rendered as secret locations and then converted to proxy types later
@ -187,6 +188,7 @@ export interface RenderSecretsUnrollAssistantOptions {
currentUserSlug: string;
platformClient: PlatformClient;
onPremProxyUrl: string | null;
alwaysUseProxy?: boolean;
}
export type UnrollAssistantOptions =
@ -256,6 +258,7 @@ export async function unrollAssistantFromContent(
const secrets = await extractRenderedSecretsMap(
templatedYaml,
options.platformClient,
options.alwaysUseProxy,
);
const renderedYaml = renderTemplateData(templatedYaml, {
secrets,