Jarvis-Brain 0.1.11.0__tar.gz → 0.1.11.1__tar.gz
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.
- {jarvis_brain-0.1.11.0 → jarvis_brain-0.1.11.1}/PKG-INFO +1 -1
- {jarvis_brain-0.1.11.0 → jarvis_brain-0.1.11.1}/pyproject.toml +1 -1
- {jarvis_brain-0.1.11.0 → jarvis_brain-0.1.11.1}/tools/browser_proxy.py +6 -1
- {jarvis_brain-0.1.11.0 → jarvis_brain-0.1.11.1}/.gitignore +0 -0
- {jarvis_brain-0.1.11.0 → jarvis_brain-0.1.11.1}/README.md +0 -0
- {jarvis_brain-0.1.11.0 → jarvis_brain-0.1.11.1}/mcp_tools/__init__.py +0 -0
- {jarvis_brain-0.1.11.0 → jarvis_brain-0.1.11.1}/mcp_tools/dp_tools.py +0 -0
- {jarvis_brain-0.1.11.0 → jarvis_brain-0.1.11.1}/mcp_tools/main.py +0 -0
- {jarvis_brain-0.1.11.0 → jarvis_brain-0.1.11.1}/tools/__init__.py +0 -0
- {jarvis_brain-0.1.11.0 → jarvis_brain-0.1.11.1}/tools/browser_manager.py +0 -0
- {jarvis_brain-0.1.11.0 → jarvis_brain-0.1.11.1}/tools/tools.py +0 -0
- {jarvis_brain-0.1.11.0 → jarvis_brain-0.1.11.1}/uv.lock +0 -0
|
@@ -155,17 +155,22 @@ def check_data_packet(packet: DataPacket, client: DPProxyClient):
|
|
|
155
155
|
continue
|
|
156
156
|
if (index + 1) != len(body_str_list):
|
|
157
157
|
body_completed = False
|
|
158
|
+
if packet.response:
|
|
159
|
+
response_headers = packet.response.headers
|
|
160
|
+
else:
|
|
161
|
+
response_headers = {}
|
|
158
162
|
temp_dict = {
|
|
159
163
|
"url": url,
|
|
160
164
|
"body_completed": body_completed,
|
|
161
165
|
"method": method,
|
|
162
166
|
"request_data": data,
|
|
163
167
|
"request_headers": dict(packet.request.headers),
|
|
164
|
-
"response_headers": dict(
|
|
168
|
+
"response_headers": dict(response_headers),
|
|
165
169
|
"response_body_segment": body_str.replace("\\", ""),
|
|
166
170
|
}
|
|
167
171
|
client.packet_queue.append(temp_dict)
|
|
168
172
|
|
|
173
|
+
|
|
169
174
|
def check_data_packet(packet: DataPacket, client: DPProxyClient):
|
|
170
175
|
"""
|
|
171
176
|
封装监听到的数据包,并将其存放在client的packet_queue中
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|