agent-inspect 6.31.15 → 6.31.17
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.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/SECURITY.md +1 -0
- package/docs/COMPARE.md +11 -0
- package/package.json +3 -2
- package/packages/cli/dist/{chunk-ZAYVAHIH.mjs → chunk-USZJEEME.mjs} +6 -6
- package/packages/cli/dist/chunk-USZJEEME.mjs.map +1 -0
- package/packages/cli/dist/index.cjs +11 -8
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +10 -7
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/{src-KP4UIFK5.mjs → src-EY4EY456.mjs} +3 -3
- package/packages/cli/dist/{src-KP4UIFK5.mjs.map → src-EY4EY456.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs +1 -1
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.mjs +9 -9
- package/packages/core/dist/checks.cjs +3 -3
- package/packages/core/dist/checks.cjs.map +1 -1
- package/packages/core/dist/checks.mjs +3 -3
- package/packages/core/dist/{chunk-SSG3ICI4.mjs → chunk-6C244CAV.mjs} +4 -4
- package/packages/core/dist/{chunk-SSG3ICI4.mjs.map → chunk-6C244CAV.mjs.map} +1 -1
- package/packages/core/dist/{chunk-N5PZAI6Q.mjs → chunk-77UZIMMD.mjs} +3 -3
- package/packages/core/dist/{chunk-N5PZAI6Q.mjs.map → chunk-77UZIMMD.mjs.map} +1 -1
- package/packages/core/dist/{chunk-DK3OW6UI.mjs → chunk-EOXUEQB6.mjs} +3 -3
- package/packages/core/dist/chunk-EOXUEQB6.mjs.map +1 -0
- package/packages/core/dist/{chunk-CCYKNAOD.mjs → chunk-GTA6SNDK.mjs} +6 -6
- package/packages/core/dist/chunk-GTA6SNDK.mjs.map +1 -0
- package/packages/core/dist/{chunk-M3RJD3BP.mjs → chunk-NX25C7JZ.mjs} +3 -3
- package/packages/core/dist/{chunk-M3RJD3BP.mjs.map → chunk-NX25C7JZ.mjs.map} +1 -1
- package/packages/core/dist/exporters.cjs +1 -1
- package/packages/core/dist/exporters.cjs.map +1 -1
- package/packages/core/dist/exporters.mjs +3 -3
- package/packages/core/dist/index.cjs +1 -1
- package/packages/core/dist/index.cjs.map +1 -1
- package/packages/core/dist/index.mjs +4 -4
- package/packages/core/dist/writers.cjs +1 -1
- package/packages/core/dist/writers.cjs.map +1 -1
- package/packages/core/dist/writers.mjs +1 -1
- package/packages/cli/dist/chunk-ZAYVAHIH.mjs.map +0 -1
- package/packages/core/dist/chunk-CCYKNAOD.mjs.map +0 -1
- package/packages/core/dist/chunk-DK3OW6UI.mjs.map +0 -1
|
@@ -261,7 +261,7 @@ function stringContainsHighConfidenceCredential(value) {
|
|
|
261
261
|
var KEY_VALUE_SECRET_PATTERN, HIGH_CONFIDENCE_CREDENTIAL_PATTERNS;
|
|
262
262
|
var init_credential_value_patterns = __esm({
|
|
263
263
|
"packages/core/src/safety/credential-value-patterns.ts"() {
|
|
264
|
-
KEY_VALUE_SECRET_PATTERN = /\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED
|
|
264
|
+
KEY_VALUE_SECRET_PATTERN = /\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED|HASH:(?:[0-9a-f]{8}|unknown))\](?![^\s"'\\&#?]))([^\s"'\\]{8,})/i;
|
|
265
265
|
HIGH_CONFIDENCE_CREDENTIAL_PATTERNS = [
|
|
266
266
|
/^(?:basic|bearer|digest|apikey)\s+[a-z0-9._~+/=-]+$/i,
|
|
267
267
|
/\bbearer\s+[a-z0-9._~+/=-]{12,}\b/i,
|
|
@@ -5994,8 +5994,8 @@ function isFullyRedactedValue(value, markers = ["[REDACTED]", "[REDACTED:"]) {
|
|
|
5994
5994
|
if (typeof value !== "string") return false;
|
|
5995
5995
|
const trimmed = value.trim();
|
|
5996
5996
|
if (trimmed.length === 0) return false;
|
|
5997
|
-
if (
|
|
5998
|
-
if (/^\[
|
|
5997
|
+
if (trimmed === "[HASH:unknown]") return true;
|
|
5998
|
+
if (/^\[HASH:[0-9a-f]{8}\]$/.test(trimmed)) return true;
|
|
5999
5999
|
for (const marker of markers) {
|
|
6000
6000
|
if (marker.endsWith(":")) continue;
|
|
6001
6001
|
if (trimmed === marker) return true;
|
|
@@ -7540,7 +7540,7 @@ var init_checks2 = __esm({
|
|
|
7540
7540
|
// Keep in sync with packages/redact/src/key-value-secret.ts (KEY_VALUE_SECRET_PATTERN_SOURCE).
|
|
7541
7541
|
{
|
|
7542
7542
|
id: "key-value-secret",
|
|
7543
|
-
pattern: /\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED
|
|
7543
|
+
pattern: /\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED|HASH:(?:[0-9a-f]{8}|unknown))\](?![^\s"'\\&#?]))([^\s"'\\]{8,})/i
|
|
7544
7544
|
}
|
|
7545
7545
|
];
|
|
7546
7546
|
}
|
|
@@ -16829,7 +16829,7 @@ var init_src = __esm({
|
|
|
16829
16829
|
});
|
|
16830
16830
|
|
|
16831
16831
|
// package.json
|
|
16832
|
-
var version = "6.31.
|
|
16832
|
+
var version = "6.31.17";
|
|
16833
16833
|
|
|
16834
16834
|
// packages/cli/src/list.ts
|
|
16835
16835
|
init_advanced();
|
|
@@ -21415,7 +21415,7 @@ function isCredentialSensitiveKey2(key, sensitiveKeys) {
|
|
|
21415
21415
|
}
|
|
21416
21416
|
|
|
21417
21417
|
// packages/redact/src/key-value-secret.ts
|
|
21418
|
-
var KEY_VALUE_SECRET_PATTERN_SOURCE = String.raw`\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED
|
|
21418
|
+
var KEY_VALUE_SECRET_PATTERN_SOURCE = String.raw`\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED|HASH:(?:[0-9a-f]{8}|unknown))\](?![^\s"'\\&#?]))([^\s"'\\]{8,})`;
|
|
21419
21419
|
var KEY_VALUE_SECRET_PATTERN2 = new RegExp(
|
|
21420
21420
|
KEY_VALUE_SECRET_PATTERN_SOURCE,
|
|
21421
21421
|
"i"
|
|
@@ -21872,8 +21872,8 @@ function isCompleteRedactionMarker(value, replacement = "[REDACTED]") {
|
|
|
21872
21872
|
const trimmed = value.trim();
|
|
21873
21873
|
if (trimmed.length === 0) return false;
|
|
21874
21874
|
if (trimmed === replacement) return true;
|
|
21875
|
-
if (
|
|
21876
|
-
if (/^\[
|
|
21875
|
+
if (trimmed === "[HASH:unknown]") return true;
|
|
21876
|
+
if (/^\[HASH:[0-9a-f]{8}\]$/.test(trimmed)) return true;
|
|
21877
21877
|
return false;
|
|
21878
21878
|
}
|
|
21879
21879
|
function applyRule(rule, value, replacement) {
|
|
@@ -22106,6 +22106,9 @@ function isRecord18(value) {
|
|
|
22106
22106
|
}
|
|
22107
22107
|
function rejectRemotePolicyPath(policyPath) {
|
|
22108
22108
|
const trimmed = policyPath.trim();
|
|
22109
|
+
if (/^[a-z]:[\\/]/i.test(trimmed)) {
|
|
22110
|
+
return;
|
|
22111
|
+
}
|
|
22109
22112
|
if (/^[a-z][a-z0-9+.-]*:/i.test(trimmed)) {
|
|
22110
22113
|
throw new Error(
|
|
22111
22114
|
`--policy must be a local JSON file path (got a URL-like value). Remote policy fetch is not supported.`
|