agent-inspect 6.17.2 → 6.17.4

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 (32) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +5 -8
  3. package/docs/ADAPTER-CONFORMANCE.md +24 -0
  4. package/docs/CI-ARTIFACTS.md +2 -1
  5. package/docs/OPENAI-AGENTS-LOCAL.md +14 -0
  6. package/docs/SAFE-TRACE-SHARING.md +3 -0
  7. package/docs/SCREENSHOTS.md +2 -1
  8. package/docs/SELF-HOSTING.md +2 -0
  9. package/docs/STANDARDS.md +15 -0
  10. package/docs/SUPPORT-LEVELS.md +23 -0
  11. package/docs/assets/agent-inspect-logo-mark.svg +12 -0
  12. package/docs/assets/readme-product-loop.svg +17 -26
  13. package/package.json +5 -3
  14. package/packages/cli/dist/{chunk-FXGWXSFV.mjs → chunk-YX6RFLV5.mjs} +15 -5
  15. package/packages/cli/dist/chunk-YX6RFLV5.mjs.map +1 -0
  16. package/packages/cli/dist/index.cjs +32 -10
  17. package/packages/cli/dist/index.cjs.map +1 -1
  18. package/packages/cli/dist/index.mjs +22 -10
  19. package/packages/cli/dist/index.mjs.map +1 -1
  20. package/packages/cli/dist/{src-EW7KW2BK.mjs → src-X6SLMBNH.mjs} +3 -3
  21. package/packages/cli/dist/{src-EW7KW2BK.mjs.map → src-X6SLMBNH.mjs.map} +1 -1
  22. package/packages/core/dist/advanced.cjs +7 -2
  23. package/packages/core/dist/advanced.cjs.map +1 -1
  24. package/packages/core/dist/advanced.mjs +7 -2
  25. package/packages/core/dist/advanced.mjs.map +1 -1
  26. package/packages/core/dist/checks.cjs +7 -2
  27. package/packages/core/dist/checks.cjs.map +1 -1
  28. package/packages/core/dist/checks.mjs +1 -1
  29. package/packages/core/dist/{chunk-UFP54T7F.mjs → chunk-HN377P23.mjs} +9 -4
  30. package/packages/core/dist/chunk-HN377P23.mjs.map +1 -0
  31. package/packages/cli/dist/chunk-FXGWXSFV.mjs.map +0 -1
  32. package/packages/core/dist/chunk-UFP54T7F.mjs.map +0 -1
@@ -118,8 +118,11 @@ function outcomesMatchingStatus(outcomes, statuses) {
118
118
  }
119
119
 
120
120
  // packages/core/src/safety/sensitive-key.ts
121
+ function keyHasExplicitSeparator(value) {
122
+ return /[_\-.]/.test(value);
123
+ }
121
124
  function normalizeSensitiveKey(value) {
122
- return value.toLowerCase().replace(/[^a-z0-9_]/g, "");
125
+ return value.replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
123
126
  }
124
127
  var NON_CREDENTIAL_TOKEN_CONFIG_KEYS = new Set(
125
128
  [
@@ -171,6 +174,7 @@ function isCredentialSensitiveKey(key, sensitiveKeys = DEFAULT_CREDENTIAL_SENSIT
171
174
  const normalized = normalizeSensitiveKey(key);
172
175
  if (!normalized) return false;
173
176
  if (NON_CREDENTIAL_TOKEN_CONFIG_KEYS.has(normalized)) return false;
177
+ const allowPrefixCompound = keyHasExplicitSeparator(key);
174
178
  for (const sensitive of sensitiveKeys) {
175
179
  const s = normalizeSensitiveKey(sensitive);
176
180
  if (!s) continue;
@@ -179,7 +183,8 @@ function isCredentialSensitiveKey(key, sensitiveKeys = DEFAULT_CREDENTIAL_SENSIT
179
183
  continue;
180
184
  }
181
185
  if (normalized === s) return true;
182
- if (normalized.endsWith(`_${s}`) || normalized.startsWith(`${s}_`)) return true;
186
+ if (normalized.endsWith(`_${s}`)) return true;
187
+ if (allowPrefixCompound && normalized.startsWith(`${s}_`)) return true;
183
188
  }
184
189
  return false;
185
190
  }