hud-python 0.4.49__py3-none-any.whl → 0.4.50__py3-none-any.whl
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.
Potentially problematic release.
This version of hud-python might be problematic. Click here for more details.
- hud/tools/bash.py +2 -2
- hud/tools/edit.py +3 -7
- hud/utils/tests/test_version.py +1 -1
- hud/version.py +1 -1
- {hud_python-0.4.49.dist-info → hud_python-0.4.50.dist-info}/METADATA +1 -1
- {hud_python-0.4.49.dist-info → hud_python-0.4.50.dist-info}/RECORD +9 -9
- {hud_python-0.4.49.dist-info → hud_python-0.4.50.dist-info}/WHEEL +0 -0
- {hud_python-0.4.49.dist-info → hud_python-0.4.50.dist-info}/entry_points.txt +0 -0
- {hud_python-0.4.49.dist-info → hud_python-0.4.50.dist-info}/licenses/LICENSE +0 -0
hud/tools/bash.py
CHANGED
|
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import asyncio
|
|
4
4
|
import os
|
|
5
5
|
import sys
|
|
6
|
-
from typing import TYPE_CHECKING
|
|
6
|
+
from typing import TYPE_CHECKING
|
|
7
7
|
|
|
8
8
|
from .base import BaseTool
|
|
9
9
|
from .types import ContentResult, ToolError
|
|
@@ -140,7 +140,7 @@ class BashTool(BaseTool):
|
|
|
140
140
|
self.env = value
|
|
141
141
|
|
|
142
142
|
async def __call__(
|
|
143
|
-
self, command: str | None = None, restart: bool = False
|
|
143
|
+
self, command: str | None = None, restart: bool = False
|
|
144
144
|
) -> list[ContentBlock]:
|
|
145
145
|
if restart:
|
|
146
146
|
if self.session:
|
hud/tools/edit.py
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
1
|
from collections import defaultdict
|
|
4
2
|
from pathlib import Path
|
|
5
|
-
from typing import
|
|
3
|
+
from typing import Literal, get_args
|
|
4
|
+
|
|
5
|
+
from mcp.types import ContentBlock
|
|
6
6
|
|
|
7
7
|
from .base import BaseTool
|
|
8
8
|
from .types import ContentResult, ToolError
|
|
9
9
|
from .utils import maybe_truncate, run
|
|
10
10
|
|
|
11
|
-
if TYPE_CHECKING:
|
|
12
|
-
from mcp.types import ContentBlock
|
|
13
|
-
|
|
14
11
|
Command = Literal[
|
|
15
12
|
"view",
|
|
16
13
|
"create",
|
|
@@ -56,7 +53,6 @@ class EditTool(BaseTool):
|
|
|
56
53
|
old_str: str | None = None,
|
|
57
54
|
new_str: str | None = None,
|
|
58
55
|
insert_line: int | None = None,
|
|
59
|
-
**kwargs: Any,
|
|
60
56
|
) -> list[ContentBlock]:
|
|
61
57
|
_path = Path(path)
|
|
62
58
|
self.validate_path(command, _path)
|
hud/utils/tests/test_version.py
CHANGED
hud/version.py
CHANGED
|
@@ -2,7 +2,7 @@ hud/__init__.py,sha256=JMDFUE1pP0J1Xl_miBdt7ERvoffZmTzSFe8yxz512A8,552
|
|
|
2
2
|
hud/__main__.py,sha256=YR8Dq8OhINOsVfQ55PmRXXg4fEK84Rt_-rMtJ5rvhWo,145
|
|
3
3
|
hud/settings.py,sha256=disObWa-DgXzoDcCDp3y1dTPaNsbR0IvoMJL9Eg4zyo,3947
|
|
4
4
|
hud/types.py,sha256=KCVrglSG0VK-AUCFgG5CLgDcYqokvYgZG1r2Bsc-tBg,11155
|
|
5
|
-
hud/version.py,sha256=
|
|
5
|
+
hud/version.py,sha256=n0UAZxOUNvgBT83XVdXaBuxxtW1D_o4cgeK4Myy1HO8,105
|
|
6
6
|
hud/agents/__init__.py,sha256=UoIkljWdbq4bM0LD-mSaw6w826EqdEjOk7r6glNYwYQ,286
|
|
7
7
|
hud/agents/base.py,sha256=5G8Aio50KlDMGi3RjIlzK6fNHlY8YK9y5jhhHTUN5CE,31626
|
|
8
8
|
hud/agents/claude.py,sha256=0zje6de9_H-QlyDf05BnvtwoLPFnYgXhHgQGEAjwktU,16006
|
|
@@ -166,8 +166,8 @@ hud/telemetry/tests/test_replay.py,sha256=eREc6qgSJDRT1pOPdyhiEoEJ9H2yT1ospaU1Rv
|
|
|
166
166
|
hud/telemetry/tests/test_trace.py,sha256=0rxR77CjcStat3ILA9QAswieOJ3J_386QmjmNDp34oA,2486
|
|
167
167
|
hud/tools/__init__.py,sha256=i6lE0GxYcPnlLLd-55ryCCHo7o9anC4RfqkuYFXvzMQ,1009
|
|
168
168
|
hud/tools/base.py,sha256=IxpnEHfxUtgz1k_w-09l65KKpDV3tQu4WdF3nZDsdwU,17854
|
|
169
|
-
hud/tools/bash.py,sha256=
|
|
170
|
-
hud/tools/edit.py,sha256=
|
|
169
|
+
hud/tools/bash.py,sha256=1jl7cpB1ApGXn7Hy8zghJ2fXugEol6UeN0aYUSiM2EQ,5189
|
|
170
|
+
hud/tools/edit.py,sha256=NYQL3coPIaG_-TP6DOpsVWFg1xcaMZwM5LtFye9WgNE,12644
|
|
171
171
|
hud/tools/playwright.py,sha256=HY91JsC_6cvIa-9W14wIhjsAkAtkLPaXgUqMizTG-1c,14989
|
|
172
172
|
hud/tools/response.py,sha256=t6Oc8NM4u951A1XMCBaIkFyu3VNEQ8dcWURyTygfZmA,2228
|
|
173
173
|
hud/tools/submit.py,sha256=hJG2G3Oex4fz_3CsAUVhOhAA56UvDMhquB29xCT-C3M,1973
|
|
@@ -222,10 +222,10 @@ hud/utils/tests/test_init.py,sha256=2QLQSGgyP9wJhOvPCusm_zjJad0qApOZi1BXpxcdHXQ,
|
|
|
222
222
|
hud/utils/tests/test_mcp.py,sha256=0pUa16mL-bqbZDXp5NHBnt1gO5o10BOg7zTMHZ1DNPM,4023
|
|
223
223
|
hud/utils/tests/test_progress.py,sha256=QSF7Kpi03Ff_l3mAeqW9qs1nhK50j9vBiSobZq7T4f4,7394
|
|
224
224
|
hud/utils/tests/test_telemetry.py,sha256=5jl7bEx8C8b-FfFUko5pf4UY-mPOR-9HaeL98dGtVHM,2781
|
|
225
|
-
hud/utils/tests/test_version.py,sha256=
|
|
225
|
+
hud/utils/tests/test_version.py,sha256=uQT6fdCFzf7lllZDCeSWGR5Rn30hErcUg843Zmw0rLs,160
|
|
226
226
|
hud/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
227
|
-
hud_python-0.4.
|
|
228
|
-
hud_python-0.4.
|
|
229
|
-
hud_python-0.4.
|
|
230
|
-
hud_python-0.4.
|
|
231
|
-
hud_python-0.4.
|
|
227
|
+
hud_python-0.4.50.dist-info/METADATA,sha256=KE0_svesRl5c8jKKIEGoByqyaplSJNkmGj9dk4Jsan0,22275
|
|
228
|
+
hud_python-0.4.50.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
229
|
+
hud_python-0.4.50.dist-info/entry_points.txt,sha256=jJbodNFg1m0-CDofe5AHvB4zKBq7sSdP97-ohaQ3ae4,63
|
|
230
|
+
hud_python-0.4.50.dist-info/licenses/LICENSE,sha256=yIzBheVUf86FC1bztAcr7RYWWNxyd3B-UJQ3uddg1HA,1078
|
|
231
|
+
hud_python-0.4.50.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|