@agent-inspect/mcp-server 6.31.16 → 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/dist/{chunk-ITYQ6FXK.mjs → chunk-Z4YKTU4Y.mjs} +9 -9
- package/dist/chunk-Z4YKTU4Y.mjs.map +1 -0
- package/dist/cli.cjs +7 -7
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/chunk-ITYQ6FXK.mjs.map +0 -1
|
@@ -208,7 +208,7 @@ var Redactor = class {
|
|
|
208
208
|
};
|
|
209
209
|
|
|
210
210
|
// packages/core/src/safety/credential-value-patterns.ts
|
|
211
|
-
var KEY_VALUE_SECRET_PATTERN = /\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED
|
|
211
|
+
var 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;
|
|
212
212
|
var HIGH_CONFIDENCE_CREDENTIAL_PATTERNS = [
|
|
213
213
|
/^(?:basic|bearer|digest|apikey)\s+[a-z0-9._~+/=-]+$/i,
|
|
214
214
|
/\bbearer\s+[a-z0-9._~+/=-]{12,}\b/i,
|
|
@@ -3411,7 +3411,7 @@ var DEFAULT_SECRET_PATTERNS = [
|
|
|
3411
3411
|
// Keep in sync with packages/redact/src/key-value-secret.ts (KEY_VALUE_SECRET_PATTERN_SOURCE).
|
|
3412
3412
|
{
|
|
3413
3413
|
id: "key-value-secret",
|
|
3414
|
-
pattern: /\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED
|
|
3414
|
+
pattern: /\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED|HASH:(?:[0-9a-f]{8}|unknown))\](?![^\s"'\\&#?]))([^\s"'\\]{8,})/i
|
|
3415
3415
|
}
|
|
3416
3416
|
];
|
|
3417
3417
|
function compareStrings(a, b) {
|
|
@@ -3742,8 +3742,8 @@ function isFullyRedactedValue(value, markers = ["[REDACTED]", "[REDACTED:"]) {
|
|
|
3742
3742
|
if (typeof value !== "string") return false;
|
|
3743
3743
|
const trimmed = value.trim();
|
|
3744
3744
|
if (trimmed.length === 0) return false;
|
|
3745
|
-
if (
|
|
3746
|
-
if (/^\[
|
|
3745
|
+
if (trimmed === "[HASH:unknown]") return true;
|
|
3746
|
+
if (/^\[HASH:[0-9a-f]{8}\]$/.test(trimmed)) return true;
|
|
3747
3747
|
for (const marker of markers) {
|
|
3748
3748
|
if (marker.endsWith(":")) continue;
|
|
3749
3749
|
if (trimmed === marker) return true;
|
|
@@ -7806,7 +7806,7 @@ function isCredentialSensitiveKey2(key, sensitiveKeys) {
|
|
|
7806
7806
|
}
|
|
7807
7807
|
|
|
7808
7808
|
// packages/redact/src/key-value-secret.ts
|
|
7809
|
-
var KEY_VALUE_SECRET_PATTERN_SOURCE = String.raw`\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED
|
|
7809
|
+
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,})`;
|
|
7810
7810
|
var KEY_VALUE_SECRET_PATTERN2 = new RegExp(
|
|
7811
7811
|
KEY_VALUE_SECRET_PATTERN_SOURCE,
|
|
7812
7812
|
"i"
|
|
@@ -8263,8 +8263,8 @@ function isCompleteRedactionMarker(value, replacement = "[REDACTED]") {
|
|
|
8263
8263
|
const trimmed = value.trim();
|
|
8264
8264
|
if (trimmed.length === 0) return false;
|
|
8265
8265
|
if (trimmed === replacement) return true;
|
|
8266
|
-
if (
|
|
8267
|
-
if (/^\[
|
|
8266
|
+
if (trimmed === "[HASH:unknown]") return true;
|
|
8267
|
+
if (/^\[HASH:[0-9a-f]{8}\]$/.test(trimmed)) return true;
|
|
8268
8268
|
return false;
|
|
8269
8269
|
}
|
|
8270
8270
|
function applyRule(rule, value, replacement) {
|
|
@@ -9360,5 +9360,5 @@ async function runReadOnlyMcpServer(options = {}) {
|
|
|
9360
9360
|
}
|
|
9361
9361
|
|
|
9362
9362
|
export { MCP_MAX_REQUEST_BYTES, MCP_PROTOCOL_VERSION, MCP_SERVER_INSTRUCTIONS, READ_ONLY_TOOLS, TRACE_DATA_UNTRUSTED_WARNING, callReadOnlyTool, createMcpServerContext, handleMcpProtocolLine, runReadOnlyMcpServer };
|
|
9363
|
-
//# sourceMappingURL=chunk-
|
|
9364
|
-
//# sourceMappingURL=chunk-
|
|
9363
|
+
//# sourceMappingURL=chunk-Z4YKTU4Y.mjs.map
|
|
9364
|
+
//# sourceMappingURL=chunk-Z4YKTU4Y.mjs.map
|