weco 0.2.13__tar.gz → 0.2.14__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.
Files changed (44) hide show
  1. {weco-0.2.13 → weco-0.2.14}/PKG-INFO +1 -1
  2. {weco-0.2.13 → weco-0.2.14}/pyproject.toml +1 -1
  3. {weco-0.2.13 → weco-0.2.14}/weco/__init__.py +1 -1
  4. {weco-0.2.13 → weco-0.2.14}/weco/api.py +1 -2
  5. {weco-0.2.13 → weco-0.2.14}/weco/cli.py +5 -3
  6. {weco-0.2.13 → weco-0.2.14}/weco.egg-info/PKG-INFO +1 -1
  7. {weco-0.2.13 → weco-0.2.14}/.github/workflows/lint.yml +0 -0
  8. {weco-0.2.13 → weco-0.2.14}/.github/workflows/release.yml +0 -0
  9. {weco-0.2.13 → weco-0.2.14}/.gitignore +0 -0
  10. {weco-0.2.13 → weco-0.2.14}/.repomixignore +0 -0
  11. {weco-0.2.13 → weco-0.2.14}/LICENSE +0 -0
  12. {weco-0.2.13 → weco-0.2.14}/README.md +0 -0
  13. {weco-0.2.13 → weco-0.2.14}/examples/cuda/README.md +0 -0
  14. {weco-0.2.13 → weco-0.2.14}/examples/cuda/evaluate.py +0 -0
  15. {weco-0.2.13 → weco-0.2.14}/examples/cuda/guide.md +0 -0
  16. {weco-0.2.13 → weco-0.2.14}/examples/cuda/optimize.py +0 -0
  17. {weco-0.2.13 → weco-0.2.14}/examples/hello-kernel-world/evaluate.py +0 -0
  18. {weco-0.2.13 → weco-0.2.14}/examples/hello-kernel-world/optimize.py +0 -0
  19. {weco-0.2.13 → weco-0.2.14}/examples/metal/README.md +0 -0
  20. {weco-0.2.13 → weco-0.2.14}/examples/metal/evaluate.py +0 -0
  21. {weco-0.2.13 → weco-0.2.14}/examples/metal/examples.rst +0 -0
  22. {weco-0.2.13 → weco-0.2.14}/examples/metal/optimize.py +0 -0
  23. {weco-0.2.13 → weco-0.2.14}/examples/prompt/README.md +0 -0
  24. {weco-0.2.13 → weco-0.2.14}/examples/prompt/eval.py +0 -0
  25. {weco-0.2.13 → weco-0.2.14}/examples/prompt/optimize.py +0 -0
  26. {weco-0.2.13 → weco-0.2.14}/examples/prompt/prompt_guide.md +0 -0
  27. {weco-0.2.13 → weco-0.2.14}/examples/spaceship-titanic/README.md +0 -0
  28. {weco-0.2.13 → weco-0.2.14}/examples/spaceship-titanic/baseline.py +0 -0
  29. {weco-0.2.13 → weco-0.2.14}/examples/spaceship-titanic/evaluate.py +0 -0
  30. {weco-0.2.13 → weco-0.2.14}/examples/spaceship-titanic/optimize.py +0 -0
  31. {weco-0.2.13 → weco-0.2.14}/examples/spaceship-titanic/requirements-test.txt +0 -0
  32. {weco-0.2.13 → weco-0.2.14}/examples/spaceship-titanic/utils.py +0 -0
  33. {weco-0.2.13 → weco-0.2.14}/examples/triton/README.md +0 -0
  34. {weco-0.2.13 → weco-0.2.14}/examples/triton/evaluate.py +0 -0
  35. {weco-0.2.13 → weco-0.2.14}/examples/triton/optimize.py +0 -0
  36. {weco-0.2.13 → weco-0.2.14}/setup.cfg +0 -0
  37. {weco-0.2.13 → weco-0.2.14}/weco/auth.py +0 -0
  38. {weco-0.2.13 → weco-0.2.14}/weco/panels.py +0 -0
  39. {weco-0.2.13 → weco-0.2.14}/weco/utils.py +0 -0
  40. {weco-0.2.13 → weco-0.2.14}/weco.egg-info/SOURCES.txt +0 -0
  41. {weco-0.2.13 → weco-0.2.14}/weco.egg-info/dependency_links.txt +0 -0
  42. {weco-0.2.13 → weco-0.2.14}/weco.egg-info/entry_points.txt +0 -0
  43. {weco-0.2.13 → weco-0.2.14}/weco.egg-info/requires.txt +0 -0
  44. {weco-0.2.13 → weco-0.2.14}/weco.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: weco
3
- Version: 0.2.13
3
+ Version: 0.2.14
4
4
  Summary: Documentation for `weco`, a CLI for using Weco AI's code optimizer.
5
5
  Author-email: Weco AI Team <contact@weco.ai>
6
6
  License: MIT
@@ -10,7 +10,7 @@ authors = [
10
10
  ]
11
11
  description = "Documentation for `weco`, a CLI for using Weco AI's code optimizer."
12
12
  readme = "README.md"
13
- version = "0.2.13"
13
+ version = "0.2.14"
14
14
  license = {text = "MIT"}
15
15
  requires-python = ">=3.8"
16
16
  dependencies = ["requests", "rich"]
@@ -1,7 +1,7 @@
1
1
  import os
2
2
 
3
3
  # DO NOT EDIT
4
- __pkg_version__ = "0.2.13"
4
+ __pkg_version__ = "0.2.14"
5
5
  __api_version__ = "v1"
6
6
 
7
7
  __base_url__ = f"https://api.weco.ai/{__api_version__}"
@@ -7,8 +7,7 @@ import sys
7
7
 
8
8
  def handle_api_error(e: requests.exceptions.HTTPError, console: rich.console.Console) -> None:
9
9
  """Extract and display error messages from API responses in a structured format."""
10
- error_message = str(e) # Default message
11
- console.print(f"[bold red]Error:[/] {error_message}")
10
+ console.print(f"[bold red]{e.response.json()['detail']}[/]")
12
11
  sys.exit(1)
13
12
 
14
13
 
@@ -201,14 +201,13 @@ def main() -> None:
201
201
  )
202
202
 
203
203
  # --- Logout Command ---
204
- logout_parser = subparsers.add_parser("logout", help="Log out from Weco and clear saved API key.") # noqa F841
204
+ _ = subparsers.add_parser("logout", help="Log out from Weco and clear saved API key.")
205
205
 
206
206
  args = parser.parse_args()
207
207
 
208
208
  # --- Handle Logout Command ---
209
209
  if args.command == "logout":
210
210
  clear_api_key()
211
- console.print("[green]Logged out successfully.[/]") # Added feedback
212
211
  sys.exit(0)
213
212
 
214
213
  # --- Handle Run Command ---
@@ -257,7 +256,10 @@ def main() -> None:
257
256
  maximize = args.maximize == "true"
258
257
  steps = args.steps
259
258
  code_generator_config = {"model": args.model}
260
- evaluator_config = {"model": args.model}
259
+ evaluator_config = {
260
+ "model": args.model,
261
+ "include_analysis": False, # NOTE: False for now
262
+ }
261
263
  search_policy_config = {
262
264
  "num_drafts": max(1, math.ceil(0.15 * steps)),
263
265
  "debug_prob": 0.5,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: weco
3
- Version: 0.2.13
3
+ Version: 0.2.14
4
4
  Summary: Documentation for `weco`, a CLI for using Weco AI's code optimizer.
5
5
  Author-email: Weco AI Team <contact@weco.ai>
6
6
  License: MIT
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
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes