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.
- package/CHANGELOG.md +12 -0
- package/README.md +5 -8
- package/docs/ADAPTER-CONFORMANCE.md +24 -0
- package/docs/CI-ARTIFACTS.md +2 -1
- package/docs/OPENAI-AGENTS-LOCAL.md +14 -0
- package/docs/SAFE-TRACE-SHARING.md +3 -0
- package/docs/SCREENSHOTS.md +2 -1
- package/docs/SELF-HOSTING.md +2 -0
- package/docs/STANDARDS.md +15 -0
- package/docs/SUPPORT-LEVELS.md +23 -0
- package/docs/assets/agent-inspect-logo-mark.svg +12 -0
- package/docs/assets/readme-product-loop.svg +17 -26
- package/package.json +5 -3
- package/packages/cli/dist/{chunk-FXGWXSFV.mjs → chunk-YX6RFLV5.mjs} +15 -5
- package/packages/cli/dist/chunk-YX6RFLV5.mjs.map +1 -0
- package/packages/cli/dist/index.cjs +32 -10
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +22 -10
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/{src-EW7KW2BK.mjs → src-X6SLMBNH.mjs} +3 -3
- package/packages/cli/dist/{src-EW7KW2BK.mjs.map → src-X6SLMBNH.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs +7 -2
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.mjs +7 -2
- package/packages/core/dist/advanced.mjs.map +1 -1
- package/packages/core/dist/checks.cjs +7 -2
- package/packages/core/dist/checks.cjs.map +1 -1
- package/packages/core/dist/checks.mjs +1 -1
- package/packages/core/dist/{chunk-UFP54T7F.mjs → chunk-HN377P23.mjs} +9 -4
- package/packages/core/dist/chunk-HN377P23.mjs.map +1 -0
- package/packages/cli/dist/chunk-FXGWXSFV.mjs.map +0 -1
- 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-
|
|
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}`)
|
|
186
|
+
if (normalized.endsWith(`_${s}`)) return true;
|
|
187
|
+
if (allowPrefixCompound && normalized.startsWith(`${s}_`)) return true;
|
|
183
188
|
}
|
|
184
189
|
return false;
|
|
185
190
|
}
|