(raw: string)
| 5 | const ENV_VAR_NAME_REGEX = /^[A-Za-z0-9_]+$/ |
| 6 | |
| 7 | export function normalizeCredentialEnvKey(raw: string): string { |
| 8 | const trimmed = raw.trim() |
| 9 | const wrappedMatch = /^\{\{\s*([A-Za-z0-9_]+)\s*\}\}$/.exec(trimmed) |
| 10 | return wrappedMatch ? wrappedMatch[1] : trimmed |
| 11 | } |
| 12 | |
| 13 | export const workspaceCredentialTypeSchema = z.enum([ |
| 14 | 'oauth', |
no outgoing calls
no test coverage detected