wcgw 2.3.1__tar.gz → 2.3.3__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.
Potentially problematic release.
This version of wcgw might be problematic. Click here for more details.
- {wcgw-2.3.1 → wcgw-2.3.3}/PKG-INFO +1 -1
- {wcgw-2.3.1 → wcgw-2.3.3}/pyproject.toml +1 -1
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/mcp_server/server.py +0 -2
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/tools.py +3 -3
- {wcgw-2.3.1 → wcgw-2.3.3}/.github/workflows/python-publish.yml +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/.github/workflows/python-tests.yml +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/.github/workflows/python-types.yml +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/.gitignore +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/.python-version +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/.vscode/settings.json +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/README.md +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/gpt_action_json_schema.json +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/gpt_instructions.txt +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/openai.md +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/__init__.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/__init__.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/__init__.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/__main__.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/anthropic_client.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/cli.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/common.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/computer_use.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/diff-instructions.txt +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/mcp_server/Readme.md +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/mcp_server/__init__.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/openai_client.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/openai_utils.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/client/sys_utils.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/relay/serve.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/relay/static/privacy.txt +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/src/wcgw/types_.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/static/claude-ss.jpg +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/static/computer-use.jpg +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/static/example.jpg +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/static/rocket-icon.png +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/static/ss1.png +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/tests/test_basic.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/tests/test_tools.py +0 -0
- {wcgw-2.3.1 → wcgw-2.3.3}/uv.lock +0 -0
|
@@ -229,8 +229,6 @@ async def handle_call_tool(
|
|
|
229
229
|
|
|
230
230
|
except Exception as e:
|
|
231
231
|
output_or_dones = [f"GOT EXCEPTION while calling tool. Error: {e}"]
|
|
232
|
-
tb = traceback.format_exc()
|
|
233
|
-
print(str(output_or_dones[0]) + "\n" + tb)
|
|
234
232
|
|
|
235
233
|
content: list[types.TextContent | types.ImageContent | types.EmbeddedResource] = []
|
|
236
234
|
for output_or_done in output_or_dones:
|
|
@@ -130,7 +130,7 @@ def start_shell() -> pexpect.spawn: # type: ignore
|
|
|
130
130
|
)
|
|
131
131
|
shell.sendline(f"export PS1={PROMPT}")
|
|
132
132
|
except Exception as e:
|
|
133
|
-
traceback.
|
|
133
|
+
console.print(traceback.format_exc())
|
|
134
134
|
console.log(f"Error starting shell: {e}. Retrying without rc ...")
|
|
135
135
|
|
|
136
136
|
shell = pexpect.spawn(
|
|
@@ -495,7 +495,7 @@ Otherwise, you may want to try Ctrl-c again or program specific exit interactive
|
|
|
495
495
|
output += exit_status
|
|
496
496
|
except ValueError as e:
|
|
497
497
|
console.print(output)
|
|
498
|
-
traceback.
|
|
498
|
+
console.print(traceback.format_exc())
|
|
499
499
|
console.print("Malformed output, restarting shell", style="red")
|
|
500
500
|
# Malformed output, restart shell
|
|
501
501
|
BASH_STATE.reset()
|
|
@@ -1150,7 +1150,7 @@ def register_client(server_url: str, client_uuid: str = "") -> None:
|
|
|
1150
1150
|
print(f"{curr_cost=}")
|
|
1151
1151
|
except Exception as e:
|
|
1152
1152
|
output = f"GOT EXCEPTION while calling tool. Error: {e}"
|
|
1153
|
-
traceback.
|
|
1153
|
+
console.print(traceback.format_exc())
|
|
1154
1154
|
assert isinstance(output, str)
|
|
1155
1155
|
websocket.send(output)
|
|
1156
1156
|
|
|
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
|
|
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
|