weco 0.2.13__py3-none-any.whl → 0.2.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.
- weco/__init__.py +1 -1
- weco/api.py +1 -2
- weco/cli.py +5 -3
- {weco-0.2.13.dist-info → weco-0.2.14.dist-info}/METADATA +1 -1
- weco-0.2.14.dist-info/RECORD +12 -0
- weco-0.2.13.dist-info/RECORD +0 -12
- {weco-0.2.13.dist-info → weco-0.2.14.dist-info}/WHEEL +0 -0
- {weco-0.2.13.dist-info → weco-0.2.14.dist-info}/entry_points.txt +0 -0
- {weco-0.2.13.dist-info → weco-0.2.14.dist-info}/licenses/LICENSE +0 -0
- {weco-0.2.13.dist-info → weco-0.2.14.dist-info}/top_level.txt +0 -0
weco/__init__.py
CHANGED
weco/api.py
CHANGED
|
@@ -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
|
-
|
|
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
|
|
weco/cli.py
CHANGED
|
@@ -201,14 +201,13 @@ def main() -> None:
|
|
|
201
201
|
)
|
|
202
202
|
|
|
203
203
|
# --- Logout Command ---
|
|
204
|
-
|
|
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 = {
|
|
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,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
weco/__init__.py,sha256=q4zeQ8CJq8NJyRcBMmST6zCzmK_HjNSFChrNBzJ9oks,426
|
|
2
|
+
weco/api.py,sha256=z2DCe0kQJaaBHo-Vml52GRc9nwQBnrKATXoY3UfPojw,3842
|
|
3
|
+
weco/auth.py,sha256=IPfiLthcNRkPyM8pWHTyDLvikw83sigacpY1PmeA03Y,2343
|
|
4
|
+
weco/cli.py,sha256=7pGJiyoBO7n6Xocwusx9iVqsaPj8OuPaJ1A2ks83Ekw,28961
|
|
5
|
+
weco/panels.py,sha256=gB4rZbCvqzewUCBcILvyyU4fnOQLwFgHCGmtn-ZlgSo,13385
|
|
6
|
+
weco/utils.py,sha256=hhIebUPnetFMfNSFfcsKVw1TSpeu_Zw3rBPPnxDie0U,3911
|
|
7
|
+
weco-0.2.14.dist-info/licenses/LICENSE,sha256=p_GQqJBvuZgkLNboYKyH-5dhpTDlKs2wq2TVM55WrWE,1065
|
|
8
|
+
weco-0.2.14.dist-info/METADATA,sha256=855avaVBC-wUyFDWIvITw0t4o_v4s90Us-t_3lQnPGw,10851
|
|
9
|
+
weco-0.2.14.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
|
10
|
+
weco-0.2.14.dist-info/entry_points.txt,sha256=ixJ2uClALbCpBvnIR6BXMNck8SHAab8eVkM9pIUowcs,39
|
|
11
|
+
weco-0.2.14.dist-info/top_level.txt,sha256=F0N7v6e2zBSlsorFv-arAq2yDxQbzX3KVO8GxYhPUeE,5
|
|
12
|
+
weco-0.2.14.dist-info/RECORD,,
|
weco-0.2.13.dist-info/RECORD
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
weco/__init__.py,sha256=DvJyE-y8upXub4ecCkEZlC5tD5-XonqMe6x8ZtQmnQ0,426
|
|
2
|
-
weco/api.py,sha256=_zgQ4AHDBgqfU2569W63c10qKuIWA5y63XT0qqvUag8,3881
|
|
3
|
-
weco/auth.py,sha256=IPfiLthcNRkPyM8pWHTyDLvikw83sigacpY1PmeA03Y,2343
|
|
4
|
-
weco/cli.py,sha256=rvUqxdJov_R74lkr0Gx-802RNsBYxhLahTue54n2bqc,28967
|
|
5
|
-
weco/panels.py,sha256=gB4rZbCvqzewUCBcILvyyU4fnOQLwFgHCGmtn-ZlgSo,13385
|
|
6
|
-
weco/utils.py,sha256=hhIebUPnetFMfNSFfcsKVw1TSpeu_Zw3rBPPnxDie0U,3911
|
|
7
|
-
weco-0.2.13.dist-info/licenses/LICENSE,sha256=p_GQqJBvuZgkLNboYKyH-5dhpTDlKs2wq2TVM55WrWE,1065
|
|
8
|
-
weco-0.2.13.dist-info/METADATA,sha256=QD0MYkpAfdETUUtQA2PC1HTuvaMf2zeAOEWyqP_lxrk,10851
|
|
9
|
-
weco-0.2.13.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
|
10
|
-
weco-0.2.13.dist-info/entry_points.txt,sha256=ixJ2uClALbCpBvnIR6BXMNck8SHAab8eVkM9pIUowcs,39
|
|
11
|
-
weco-0.2.13.dist-info/top_level.txt,sha256=F0N7v6e2zBSlsorFv-arAq2yDxQbzX3KVO8GxYhPUeE,5
|
|
12
|
-
weco-0.2.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|