@agent-inspect/mcp-server 6.31.33 → 6.31.34
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-B7FCFNLA.mjs → chunk-LRBX7VWN.mjs} +41 -15
- package/dist/chunk-LRBX7VWN.mjs.map +1 -0
- package/dist/cli.cjs +39 -13
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +39 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/chunk-B7FCFNLA.mjs.map +0 -1
package/dist/cli.cjs
CHANGED
|
@@ -226,8 +226,9 @@ var HIGH_CONFIDENCE_CREDENTIAL_PATTERNS = [
|
|
|
226
226
|
/\beyJ[a-zA-Z0-9_-]{8,}\.[a-zA-Z0-9_-]{8,}\.[a-zA-Z0-9_-]{8,}\b/,
|
|
227
227
|
/\b(?:sk-(?:proj-)?[a-zA-Z0-9_-]{16,}|sk-ant-[a-zA-Z0-9_-]{16,}|AIza[0-9A-Za-z_-]{20,})\b/,
|
|
228
228
|
// Stripe secret / restricted keys use underscores (not sk-). Keep in sync with
|
|
229
|
-
// packages/redact/src/index.ts + packages/core/src/checks DEFAULT_SECRET_PATTERNS (#520).
|
|
230
|
-
|
|
229
|
+
// packages/redact/src/index.ts + packages/core/src/checks DEFAULT_SECRET_PATTERNS (#520/#528).
|
|
230
|
+
// Use non-alnum lookarounds so underscore-adjacent forms (acct_sk_live_…, …_eu) match.
|
|
231
|
+
/(?<![A-Za-z0-9])(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{16,}(?![A-Za-z0-9])/,
|
|
231
232
|
/\bxox[abposr]-[A-Za-z0-9-]{10,}\b/,
|
|
232
233
|
/\b(?:ghp|gho|ghu|ghs|ghr)_[A-Za-z0-9_]{20,}\b/,
|
|
233
234
|
/\b(?:AKIA|ASIA)[A-Z0-9]{16}\b/,
|
|
@@ -3425,10 +3426,11 @@ var SAFE_USAGE_LEAF_KEYS = /* @__PURE__ */ new Set([
|
|
|
3425
3426
|
var DEFAULT_SECRET_PATTERNS = [
|
|
3426
3427
|
{ id: "bearer-token", pattern: /Bearer\s+[A-Za-z0-9._~+/-]{12,}=*/ },
|
|
3427
3428
|
{ id: "openai-key", pattern: /sk-[A-Za-z0-9_-]{16,}/ },
|
|
3428
|
-
// Stripe + Slack: keep in sync with packages/redact + credential-value-patterns (#520).
|
|
3429
|
+
// Stripe + Slack: keep in sync with packages/redact + credential-value-patterns (#520/#528).
|
|
3430
|
+
// Non-alnum lookarounds so underscore-adjacent forms (acct_sk_live_…, …_eu) match.
|
|
3429
3431
|
{
|
|
3430
3432
|
id: "stripe-key",
|
|
3431
|
-
pattern:
|
|
3433
|
+
pattern: /(?<![A-Za-z0-9])(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{16,}(?![A-Za-z0-9])/
|
|
3432
3434
|
},
|
|
3433
3435
|
{ id: "slack-token", pattern: /\bxox[abposr]-[A-Za-z0-9-]{10,}\b/ },
|
|
3434
3436
|
{ id: "aws-access-key", pattern: /AKIA[0-9A-Z]{16}/ },
|
|
@@ -7575,11 +7577,25 @@ function attemptIdOf(event) {
|
|
|
7575
7577
|
}
|
|
7576
7578
|
return void 0;
|
|
7577
7579
|
}
|
|
7580
|
+
function operationIdOf(event) {
|
|
7581
|
+
const direct = event.attributes?.operationId;
|
|
7582
|
+
if (typeof direct === "string" && direct.trim() !== "") return direct;
|
|
7583
|
+
const meta = event.attributes?.metadata;
|
|
7584
|
+
if (meta && typeof meta === "object" && !Array.isArray(meta)) {
|
|
7585
|
+
const nested = meta.operationId;
|
|
7586
|
+
if (typeof nested === "string" && nested.trim() !== "") return nested;
|
|
7587
|
+
}
|
|
7588
|
+
return void 0;
|
|
7589
|
+
}
|
|
7578
7590
|
function lifecycleKey(event) {
|
|
7579
7591
|
if (event.kind === "RUN") return `run:${event.runId}`;
|
|
7580
7592
|
const stepId = stepIdOf2(event);
|
|
7581
|
-
if (stepId
|
|
7582
|
-
|
|
7593
|
+
if (stepId === void 0) return `event:${event.eventId}`;
|
|
7594
|
+
const attemptId = attemptIdOf(event);
|
|
7595
|
+
if (attemptId !== void 0) return `step:${stepId}:attempt:${attemptId}`;
|
|
7596
|
+
const operationId = operationIdOf(event);
|
|
7597
|
+
if (operationId !== void 0) return `step:${stepId}:op:${operationId}`;
|
|
7598
|
+
return `step:${stepId}`;
|
|
7583
7599
|
}
|
|
7584
7600
|
function isTerminal(status) {
|
|
7585
7601
|
return status === "ok" || status === "error";
|
|
@@ -7630,6 +7646,12 @@ function joinSiblingGroup(group) {
|
|
|
7630
7646
|
const others = group.filter(
|
|
7631
7647
|
(n) => !isTerminal(n.event.status) && n.event.status !== "running"
|
|
7632
7648
|
);
|
|
7649
|
+
const operationIds = new Set(
|
|
7650
|
+
group.map((n) => operationIdOf(n.event)).filter((id) => id !== void 0)
|
|
7651
|
+
);
|
|
7652
|
+
if (operationIds.size > 1) {
|
|
7653
|
+
return group;
|
|
7654
|
+
}
|
|
7633
7655
|
const terminalStatuses = new Set(terminals.map((n) => n.event.status));
|
|
7634
7656
|
if (terminalStatuses.size > 1) {
|
|
7635
7657
|
return group;
|
|
@@ -7641,19 +7663,22 @@ function joinSiblingGroup(group) {
|
|
|
7641
7663
|
const out = [];
|
|
7642
7664
|
for (const terminal of terminals) {
|
|
7643
7665
|
const terminalAttempt = attemptIdOf(terminal.event);
|
|
7666
|
+
const terminalOp = operationIdOf(terminal.event);
|
|
7644
7667
|
const terminalTs = eventTime(terminal.event);
|
|
7645
|
-
const
|
|
7668
|
+
const candidates = runnings.filter((r) => {
|
|
7646
7669
|
if (usedRunning.has(r.event.eventId)) return false;
|
|
7647
7670
|
if (eventTime(r.event) > terminalTs) return false;
|
|
7671
|
+
const runningOp = operationIdOf(r.event);
|
|
7672
|
+
if (terminalOp !== void 0 && runningOp !== void 0 && terminalOp !== runningOp) {
|
|
7673
|
+
return false;
|
|
7674
|
+
}
|
|
7648
7675
|
const runningAttempt = attemptIdOf(r.event);
|
|
7649
7676
|
if (terminalAttempt !== void 0) {
|
|
7650
7677
|
return runningAttempt === terminalAttempt;
|
|
7651
7678
|
}
|
|
7652
|
-
|
|
7653
|
-
return true;
|
|
7654
|
-
}
|
|
7655
|
-
return true;
|
|
7679
|
+
return runningAttempt === void 0;
|
|
7656
7680
|
});
|
|
7681
|
+
const candidate = candidates.length === 1 ? candidates[0] : void 0;
|
|
7657
7682
|
if (candidate) {
|
|
7658
7683
|
usedRunning.add(candidate.event.eventId);
|
|
7659
7684
|
out.push(joinOnePair(candidate, terminal));
|
|
@@ -8826,10 +8851,11 @@ var credentialDetectors = [
|
|
|
8826
8851
|
severity: "error"
|
|
8827
8852
|
}),
|
|
8828
8853
|
// Stripe secret/restricted keys (underscore form). Keep in sync with
|
|
8829
|
-
// packages/core/src/safety/credential-value-patterns.ts + checks DEFAULT_SECRET_PATTERNS (#520).
|
|
8854
|
+
// packages/core/src/safety/credential-value-patterns.ts + checks DEFAULT_SECRET_PATTERNS (#520/#528).
|
|
8855
|
+
// Non-alnum lookarounds so underscore-adjacent forms (acct_sk_live_…, …_eu) match.
|
|
8830
8856
|
patternDetector({
|
|
8831
8857
|
id: "value.stripeSecretKey",
|
|
8832
|
-
pattern:
|
|
8858
|
+
pattern: /(?<![A-Za-z0-9])(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{16,}(?![A-Za-z0-9])/,
|
|
8833
8859
|
severity: "error"
|
|
8834
8860
|
}),
|
|
8835
8861
|
patternDetector({
|