hud-python 0.4.13__py3-none-any.whl → 0.4.14__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/cli/init.py CHANGED
@@ -21,8 +21,8 @@ COPY src/ ./src/
21
21
  RUN pip install --no-cache-dir -e .
22
22
 
23
23
  # Start context server in background, then MCP server
24
- CMD ["sh", "-c", "python -m hud_controller.env & sleep 1 && exec python -m hud_controller.server"]
25
- """ # noqa: E501
24
+ CMD ["sh", "-c", "python -m controller.env & sleep 1 && exec python -m controller.server"]
25
+ """
26
26
 
27
27
  PYPROJECT_TEMPLATE = """[project]
28
28
  name = "{name}"
@@ -44,7 +44,7 @@ image = "{name}:dev"
44
44
  allow-direct-references = true
45
45
 
46
46
  [tool.hatch.build.targets.wheel]
47
- packages = ["src/hud_controller"]
47
+ packages = ["src/controller"]
48
48
  """
49
49
 
50
50
  ENV_TEMPLATE = '''"""Minimal environment that persists across hot-reloads."""
@@ -556,7 +556,7 @@ def create_environment(name: str | None, directory: str, force: bool) -> None:
556
556
  design.warning(f"Overwriting existing files in {target_dir}")
557
557
 
558
558
  # Create directory structure
559
- src_dir = target_dir / "src" / "hud_controller"
559
+ src_dir = target_dir / "src" / "controller"
560
560
  src_dir.mkdir(parents=True, exist_ok=True)
561
561
 
562
562
  # Write files with proper formatting
@@ -582,19 +582,19 @@ def create_environment(name: str | None, directory: str, force: bool) -> None:
582
582
  # Python files
583
583
  # __init__.py
584
584
  init_path = src_dir / "__init__.py"
585
- init_path.write_text('"""HUD Controller Package"""\n', encoding="utf-8")
586
- files_created.append("src/hud_controller/__init__.py")
585
+ init_path.write_text('"""Controller Package"""\n', encoding="utf-8")
586
+ files_created.append("src/controller/__init__.py")
587
587
 
588
588
  # env.py
589
589
  env_path = src_dir / "env.py"
590
590
  env_path.write_text(ENV_TEMPLATE.strip() + "\n", encoding="utf-8")
591
- files_created.append("src/hud_controller/env.py")
591
+ files_created.append("src/controller/env.py")
592
592
 
593
593
  # server.py (need to escape the double braces for .format())
594
594
  server_path = src_dir / "server.py"
595
595
  server_content = SERVER_TEMPLATE.format(name=package_name).strip() + "\n"
596
596
  server_path.write_text(server_content, encoding="utf-8")
597
- files_created.append("src/hud_controller/server.py")
597
+ files_created.append("src/controller/server.py")
598
598
 
599
599
  # tasks.json
600
600
  tasks_path = target_dir / "tasks.json"
@@ -639,10 +639,10 @@ def create_environment(name: str | None, directory: str, force: bool) -> None:
639
639
  design.command_example("python test_task.py")
640
640
 
641
641
  design.info("\n5. Customize your environment:")
642
- design.info(" - Add tools to src/hud_controller/server.py")
643
- design.info(" - Add state to src/hud_controller/env.py")
642
+ design.info(" - Add tools to src/controller/server.py")
643
+ design.info(" - Add state to src/controller/env.py")
644
644
  design.info(" - Modify tasks in tasks.json")
645
- design.info(" - Experiment in run_eval.ipynb")
645
+ design.info(" - Experiment in test_env.ipynb")
646
646
 
647
647
  # Show a sample of the server code
648
648
  design.section_title("Your MCP server")
@@ -30,11 +30,15 @@ def install_mcp_instrumentation(provider: TracerProvider) -> None:
30
30
  logger = logging.getLogger(__name__)
31
31
 
32
32
  try:
33
+ # First, patch the _instruments to use our fork
34
+ import opentelemetry.instrumentation.mcp.instrumentation as mcp_inst
35
+ mcp_inst._instruments = ("hud-mcp-python-sdk >= 3.13.1",)
36
+
33
37
  from opentelemetry.instrumentation.mcp.instrumentation import (
34
38
  McpInstrumentor,
35
39
  )
36
40
 
37
- # First, patch the instrumentation to handle 3-value transports correctly
41
+ # Then, patch the instrumentation to handle 3-value transports correctly
38
42
  _patch_mcp_instrumentation()
39
43
 
40
44
  McpInstrumentor().instrument(tracer_provider=provider)
@@ -5,4 +5,4 @@ def test_import():
5
5
  """Test that the package can be imported."""
6
6
  import hud
7
7
 
8
- assert hud.__version__ == "0.4.13"
8
+ assert hud.__version__ == "0.4.14"
hud/version.py CHANGED
@@ -4,4 +4,4 @@ Version information for the HUD SDK.
4
4
 
5
5
  from __future__ import annotations
6
6
 
7
- __version__ = "0.4.13"
7
+ __version__ = "0.4.14"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hud-python
3
- Version: 0.4.13
3
+ Version: 0.4.14
4
4
  Summary: SDK for the HUD platform.
5
5
  Project-URL: Homepage, https://github.com/hud-evals/hud-python
6
6
  Project-URL: Bug Tracker, https://github.com/hud-evals/hud-python/issues
@@ -3,7 +3,7 @@ hud/__main__.py,sha256=YR8Dq8OhINOsVfQ55PmRXXg4fEK84Rt_-rMtJ5rvhWo,145
3
3
  hud/datasets.py,sha256=8lqC840kcNx01D2CcWZCd1j0eZTpepILmQrvohZIZYU,12056
4
4
  hud/settings.py,sha256=WIJDsyrfwBZGcaGT46YUOpW8xjBZl3siXXprd92ASAg,2039
5
5
  hud/types.py,sha256=pQWOPYXUZ2hhK0h-AHBc3DCj5tkbRXHqKZnsQQIcSFA,4237
6
- hud/version.py,sha256=jhf6DYahE5LI1FccTXHcktDwX5vMms8lI4rL1z710as,105
6
+ hud/version.py,sha256=EujFSzlsB3e5WmhxNLuJ-8DYtTfWdY6iOL9lPpx0r5U,105
7
7
  hud/agents/__init__.py,sha256=UoIkljWdbq4bM0LD-mSaw6w826EqdEjOk7r6glNYwYQ,286
8
8
  hud/agents/base.py,sha256=M2g7Cj5InE4EsXpmxqURprC3IHNGvNZFBZ8HPIQxz-A,24574
9
9
  hud/agents/claude.py,sha256=snbYFPW-KAkw4n9Rdz7dC2f46RuSHJKC53HPm8SucFM,14273
@@ -25,7 +25,7 @@ hud/cli/clone.py,sha256=AwVDIuhr8mHb1oT2Af2HrD25SiTdwATpE6zd93vzLgA,6099
25
25
  hud/cli/debug.py,sha256=FNzg9-_ZzUJA1nJfubmop7_2OT5mqnWsdpZyi4AVSXA,14163
26
26
  hud/cli/dev.py,sha256=ANsd34gHX08eQxeXz6atIuDyi7Tw8qngqvmDPAx-PI0,28640
27
27
  hud/cli/eval.py,sha256=zrUoXYdSe5cVbWa5fc9-tNK9syBCtKOpKDvc0ApeYQU,12604
28
- hud/cli/init.py,sha256=qrQ5afdB7-0GdIkHbCVwkDZ1SVDqPvWrZ0aAxPXFL1c,18764
28
+ hud/cli/init.py,sha256=guJbNkVuFhc-c2jTEx_jZxzzPkJRtGTJapWk5hyuyd8,18710
29
29
  hud/cli/list_func.py,sha256=ENxLL4X5uuqAASWZdQuI0k-tEzmlhUn5LATgz3QPQqQ,7065
30
30
  hud/cli/pull.py,sha256=JHwCwUwRO0Nzbgm9mkjsz6EpxbxgwQVhgNSY64nNZ-s,11969
31
31
  hud/cli/push.py,sha256=4KrEHj0_i3xJNCB3eRjANmHFhSW4MFfpnld3nfVYENs,17904
@@ -75,7 +75,7 @@ hud/otel/collector.py,sha256=jLZymZ8r7xt2VDuWexfbnT7PY1-0aiyLMgjBy8KDY1M,4497
75
75
  hud/otel/config.py,sha256=6np_C2UXhtKHHjY41HQxZElua2Eh_EUCBiRB_YuiSuc,6249
76
76
  hud/otel/context.py,sha256=C9MvO99cRSNNDEDC7ehO3eoTPnb6J7AemUYvEp57yEU,17774
77
77
  hud/otel/exporters.py,sha256=TP7SF6ySCP-gFV1i-u5-HbpYsK3n9GP3OjW_ZBfsj-w,14246
78
- hud/otel/instrumentation.py,sha256=ieKHEnMMSMZxPYvZokYJG-UQYXTNyEnaYG1lGY4zIHA,3575
78
+ hud/otel/instrumentation.py,sha256=xbRRmTDwDyCvJVm4iWmB65kXOhotTnv9GjwkufARBuk,3782
79
79
  hud/otel/processors.py,sha256=yI5BWsDBMEPfwMzD-iWbJd4KWH3qUDSe-5-C1yT6fjU,4615
80
80
  hud/otel/tests/__init__.py,sha256=VNJKBMaxTtbn7trW-1Ph50zCvCok_wTSGcI1HD6GOLA,43
81
81
  hud/otel/tests/test_processors.py,sha256=np0R4ssd9j6LJSJykJ5bNjl0POwNYNhgb7BqOZHwcMY,6778
@@ -144,10 +144,10 @@ hud/utils/tests/test_init.py,sha256=2QLQSGgyP9wJhOvPCusm_zjJad0qApOZi1BXpxcdHXQ,
144
144
  hud/utils/tests/test_mcp.py,sha256=0pUa16mL-bqbZDXp5NHBnt1gO5o10BOg7zTMHZ1DNPM,4023
145
145
  hud/utils/tests/test_progress.py,sha256=QSF7Kpi03Ff_l3mAeqW9qs1nhK50j9vBiSobZq7T4f4,7394
146
146
  hud/utils/tests/test_telemetry.py,sha256=5jl7bEx8C8b-FfFUko5pf4UY-mPOR-9HaeL98dGtVHM,2781
147
- hud/utils/tests/test_version.py,sha256=IZqBAIktdJocdjDlXtY7DYvUwXa-aZku1oBTF7Mwiog,160
147
+ hud/utils/tests/test_version.py,sha256=JXMZuhuGL6fqB8mARikOgFFMpmq1Y0rG-7kz7V43w5k,160
148
148
  hud/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
149
- hud_python-0.4.13.dist-info/METADATA,sha256=Ib5qtM5xmwjNC4giA-tM3f1-P1IQ7rPvjTAwEsP5WcU,20233
150
- hud_python-0.4.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
151
- hud_python-0.4.13.dist-info/entry_points.txt,sha256=jJbodNFg1m0-CDofe5AHvB4zKBq7sSdP97-ohaQ3ae4,63
152
- hud_python-0.4.13.dist-info/licenses/LICENSE,sha256=yIzBheVUf86FC1bztAcr7RYWWNxyd3B-UJQ3uddg1HA,1078
153
- hud_python-0.4.13.dist-info/RECORD,,
149
+ hud_python-0.4.14.dist-info/METADATA,sha256=e7OCOwaSi0F_gPdM0CUg2buSpTx0wd9w4uny00NH2xM,20233
150
+ hud_python-0.4.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
151
+ hud_python-0.4.14.dist-info/entry_points.txt,sha256=jJbodNFg1m0-CDofe5AHvB4zKBq7sSdP97-ohaQ3ae4,63
152
+ hud_python-0.4.14.dist-info/licenses/LICENSE,sha256=yIzBheVUf86FC1bztAcr7RYWWNxyd3B-UJQ3uddg1HA,1078
153
+ hud_python-0.4.14.dist-info/RECORD,,