项目文件夹

文件
Nikolay Vitkov 327a3884d8 refactor: remove text from the status code for Network requests (#778)
LLM are trained to know the common status code so we can rely on that
when displaying the status code and fall back to text in case of errors
or pending reponse.
2026-02-18 14:23:26 +00:00

46 行
959 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": "10"
}
}
}
`;
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
}
]
}
`;