项目文件夹

文件
Alex Rudenko 5c398c4e7c feat: support DevTools header redactions as an option (#1848)
This PR adds a CLI flag to enable redacting network headers in the same
way they are redacted in DevTools. Note that sometimes it might prevent
the agent from properly analysing network issues. Pass
`--redact-headers=false` to revert to the previous behavior.
2026-04-14 13:21:11 +00:00

46 行
967 B
Plaintext

exports[`McpContext > should include detailed network request in structured content 1`] = `
{
"networkRequest": {
"requestId": 456,
"method": "GET",
"url": "http://example.com/detail",
"status": "pending",
"requestHeaders": {
"content-size": "<redacted>"
}
}
}
`;
exports[`McpContext > should include file paths in structured content when saving to file 1`] = `
{
"networkRequest": {
"requestBody": "/tmp/req.txt",
"responseBody": "/tmp/res.txt"
}
}
`;
exports[`McpContext > should include network requests in structured content 1`] = `
{
"pagination": {
"currentPage": 0,
"totalPages": 1,
"hasNextPage": false,
"hasPreviousPage": false,
"startIndex": 0,
"endIndex": 1,
"invalidPage": false
},
"networkRequests": [
{
"requestId": 123,
"method": "GET",
"url": "http://example.com/api",
"status": "pending",
"selectedInDevToolsUI": false
}
]
}
`;