@cratis/pi 7.165.5 → 7.165.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -983,7 +983,9 @@ function token_ok(l, b) {
983
983
  function sensitive_path(w, l, b) {
984
984
  l = tolower(w); b = l; sub(/.*\//, "", b)
985
985
  if (l ~ /(^|\/)\.kube\// || b == "kubeconfig" || b ~ /\.kubeconfig$/) return "a kubeconfig"
986
- if (b ~ /^\.env/ || b ~ /\.env$/) { if (b ~ /\.(example|sample|template|dist|defaults?)$/) return ""; return "an .env file" }
986
+ # Every name starting with .env stays protected (.env2, .envprod, .envrc.local, .env-prod); only the
987
+ # dictionary words .environment, .environments and .envs, as a whole stem, are ordinary file names.
988
+ if ((b ~ /^\.env/ && b !~ /^\.(environments?|envs)([.]|$)/) || b ~ /\.env$/) { if (b ~ /\.(example|sample|template|dist|defaults?)$/) return ""; return "an .env file" }
987
989
  # A named copy or variant (app.env.old, prod.env.local, app.env~) is protected like the file itself; templates and source files are not.
988
990
  if (b ~ /.\.env[.~]/ && b !~ /\.(example|sample|template|dist|defaults?)$/ && !code_file(b) && !build_file(b)) return "an .env file"
989
991
  # Unambiguous credential extensions also protect disguised source suffixes; ambiguous words
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.165.5",
3
+ "version": "7.165.6",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [