MCPcopy Index your code
hub / github.com/cameri/nostream / validateEnvValues

Function validateEnvValues

src/cli/utils/env-config.ts:183–199  ·  view source on GitHub ↗
(values: Record<string, string>)

Source from the content-addressed store, hash-verified

181}
182
183export const validateEnvValues = (values: Record<string, string>): EnvValidationIssue[] => {
184 const issues: EnvValidationIssue[] = []
185
186 for (const [key, value] of Object.entries(values)) {
187 const issue = validateEnvPair(key, value)
188 if (!issue) {
189 continue
190 }
191
192 issues.push({
193 path: key,
194 message: issue,
195 })
196 }
197
198 return issues
199}
200
201export const isSecretEnvKey = (key: string): boolean => {
202 return SECRET_KEY_REGEX.test(key)

Callers 1

runConfigEnvValidateFunction · 0.90

Calls 1

validateEnvPairFunction · 0.85

Tested by

no test coverage detected