UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

17 lines • 819 B
const CREDENTIAL_PATH_PATTERNS = [ /(^|[/\\=])\.(ssh|aws|gnupg|kube|docker|azure|gcloud)([/\\]|$)/i, /(^|[/\\=])\.config[/\\](gh|gcloud|hub|op)([/\\]|$)/i, /(^|[/\\=])\.(netrc|npmrc|pypirc|pgpass|git-credentials|htpasswd|vault-token|envrc|terraformrc)$/i, /(^|[/\\=])\.env(\.[^/\\]*)?$/i, /(^|[/\\=])id_(rsa|dsa|ecdsa|ed25519)(\.pub)?$/i, /\.(pem|key|p12|pfx|jks|keystore|kdbx|ppk|asc|gpg)$/i, /(^|[/\\=])\.?credentials(\.json|\.toml|\.tfrc\.json)?$/i, /(^|[/\\=])auth\.json$/i, /(^|[/\\=])(\.[a-z]+_history|fish_history)$/i, /(^|[/\\=])\.m2[/\\]settings\.xml$/i, /(^|[/\\])Library[/\\]Keychains([/\\]|$)/i, ]; export function isCredentialPath(value) { return CREDENTIAL_PATH_PATTERNS.some((pattern) => pattern.test(value)); } //# sourceMappingURL=auto-credentials.js.map