MCPcopy
hub / github.com/continuedev/continue / replaceInputsWithSecrets

Function replaceInputsWithSecrets

packages/config-yaml/src/load/unroll.ts:246–256  ·  view source on GitHub ↗
(yamlContent: string)

Source from the content-addressed store, hash-verified

244}
245
246export function replaceInputsWithSecrets(yamlContent: string): string {
247 const inputsToSecretsMap: Record<string, string> = {};
248
249 getTemplateVariables(yamlContent)
250 .filter((v) => v.startsWith("inputs."))
251 .forEach((v) => {
252 inputsToSecretsMap[v] = `\${{ ${v.replace("inputs.", "secrets.")} }}`;
253 });
254
255 return fillTemplateVariables(yamlContent, inputsToSecretsMap);
256}
257
258function renderTemplateData(
259 rawYaml: string,

Callers 2

unroll.test.tsFile · 0.85
unrollBlocksFunction · 0.85

Calls 3

getTemplateVariablesFunction · 0.85
fillTemplateVariablesFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected