@oxagen/cli 5.5.1-102 → 5.5.1-113

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.
Files changed (2) hide show
  1. package/oxagen.mjs +12 -5
  2. package/package.json +1 -1
package/oxagen.mjs CHANGED
@@ -32031,7 +32031,7 @@ import { readFileSync as readFileSync11 } from "node:fs";
32031
32031
  import { dirname as dirname14, resolve as resolve3 } from "node:path";
32032
32032
  import { fileURLToPath } from "node:url";
32033
32033
  function readVersion() {
32034
- if (true) return "5.5.1-102";
32034
+ if (true) return "5.5.1-113";
32035
32035
  try {
32036
32036
  const here = dirname14(fileURLToPath(import.meta.url));
32037
32037
  const pkg = JSON.parse(
@@ -78055,7 +78055,7 @@ var init_package = __esm({
78055
78055
  "package.json"() {
78056
78056
  package_default = {
78057
78057
  name: "@oxagen/cli",
78058
- version: "5.5.1-102",
78058
+ version: "5.5.1-113",
78059
78059
  description: "Oxagen governance CLI: spend, source tracking, grounding, credentials, and audit (agentic coding lives in the stella CLI)",
78060
78060
  type: "module",
78061
78061
  main: "./dist/index.js",
@@ -113442,6 +113442,12 @@ function isSecretToken(token) {
113442
113442
  }
113443
113443
  return isJwt(token) || isHighEntropyBlob(token);
113444
113444
  }
113445
+ function hasPersonalEmail(text6) {
113446
+ for (const m of text6.matchAll(EMAIL)) {
113447
+ if (!SERVICE_ACCOUNT_DOMAIN.test(m[1])) return true;
113448
+ }
113449
+ return false;
113450
+ }
113445
113451
  function luhn(digits2) {
113446
113452
  let sum3 = 0;
113447
113453
  let double = false;
@@ -113474,8 +113480,7 @@ function findSecretsAndPii(text6) {
113474
113480
  break;
113475
113481
  }
113476
113482
  }
113477
- if (/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/.test(text6))
113478
- findings.push("email address");
113483
+ if (hasPersonalEmail(text6)) findings.push("email address");
113479
113484
  if (/\b\d{3}-\d{2}-\d{4}\b/.test(text6))
113480
113485
  findings.push("US social security number");
113481
113486
  for (const m of text6.matchAll(/\b(?:\d[ -]?){13,19}\b/g)) {
@@ -113487,7 +113492,7 @@ function findSecretsAndPii(text6) {
113487
113492
  }
113488
113493
  return findings;
113489
113494
  }
113490
- var SECRET_PREFIXES, SENSITIVE_KEY_MARKERS, TOKEN2, TOKEN_PIECES, VENDOR_FORMATS;
113495
+ var SECRET_PREFIXES, SENSITIVE_KEY_MARKERS, TOKEN2, TOKEN_PIECES, VENDOR_FORMATS, EMAIL, SERVICE_ACCOUNT_DOMAIN;
113491
113496
  var init_secrets2 = __esm({
113492
113497
  "../../packages/steering-check/src/secrets.ts"() {
113493
113498
  "use strict";
@@ -113556,6 +113561,8 @@ var init_secrets2 = __esm({
113556
113561
  /^sk-ant-[A-Za-z0-9_-]{20,}/,
113557
113562
  /^sk-proj-[A-Za-z0-9_-]{20,}/
113558
113563
  ];
113564
+ EMAIL = /[A-Za-z0-9._%+-]+@([A-Za-z0-9.-]+\.[A-Za-z]{2,})/g;
113565
+ SERVICE_ACCOUNT_DOMAIN = /^[a-z][a-z0-9-]*[a-z0-9](?:\.iam)?\.gserviceaccount\.com$/i;
113559
113566
  }
113560
113567
  });
113561
113568
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxagen/cli",
3
- "version": "5.5.1-102",
3
+ "version": "5.5.1-113",
4
4
  "description": "Oxagen governance CLI: spend, source tracking, grounding, credentials, and audit (agentic coding lives in the stella CLI)",
5
5
  "type": "module",
6
6
  "bin": {