wcgw 2.4.0__py3-none-any.whl → 2.4.1__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 wcgw might be problematic. Click here for more details.
- wcgw/client/mcp_server/server.py +6 -6
- wcgw/client/tools.py +1 -1
- {wcgw-2.4.0.dist-info → wcgw-2.4.1.dist-info}/METADATA +2 -2
- {wcgw-2.4.0.dist-info → wcgw-2.4.1.dist-info}/RECORD +6 -6
- {wcgw-2.4.0.dist-info → wcgw-2.4.1.dist-info}/WHEEL +0 -0
- {wcgw-2.4.0.dist-info → wcgw-2.4.1.dist-info}/entry_points.txt +0 -0
wcgw/client/mcp_server/server.py
CHANGED
|
@@ -6,12 +6,12 @@ import sys
|
|
|
6
6
|
import traceback
|
|
7
7
|
from typing import Any
|
|
8
8
|
|
|
9
|
-
from
|
|
10
|
-
import
|
|
11
|
-
from
|
|
12
|
-
from
|
|
9
|
+
from mcp_wcgw.server.models import InitializationOptions
|
|
10
|
+
import mcp_wcgw.types as types
|
|
11
|
+
from mcp_wcgw.types import Tool as ToolParam
|
|
12
|
+
from mcp_wcgw.server import NotificationOptions, Server
|
|
13
13
|
from pydantic import AnyUrl, BaseModel, ValidationError
|
|
14
|
-
import
|
|
14
|
+
import mcp_wcgw.server.stdio
|
|
15
15
|
from .. import tools
|
|
16
16
|
from ..tools import DoneFlag, get_tool_output, which_tool_name, default_enc
|
|
17
17
|
from ...types_ import (
|
|
@@ -282,7 +282,7 @@ async def main(computer_use: bool) -> None:
|
|
|
282
282
|
|
|
283
283
|
version = importlib.metadata.version("wcgw")
|
|
284
284
|
# Run the server using stdin/stdout streams
|
|
285
|
-
async with
|
|
285
|
+
async with mcp_wcgw.server.stdio.stdio_server() as (read_stream, write_stream):
|
|
286
286
|
await server.run(
|
|
287
287
|
read_stream,
|
|
288
288
|
write_stream,
|
wcgw/client/tools.py
CHANGED
|
@@ -498,7 +498,7 @@ def execute_bash(
|
|
|
498
498
|
BASH_STATE.shell.expect(PROMPT)
|
|
499
499
|
return "---\n\nFailure: user interrupted the execution", 0.0
|
|
500
500
|
|
|
501
|
-
wait = timeout_s or TIMEOUT
|
|
501
|
+
wait = min(timeout_s or TIMEOUT, TIMEOUT_WHILE_OUTPUT)
|
|
502
502
|
index = BASH_STATE.shell.expect([PROMPT, pexpect.TIMEOUT], timeout=wait)
|
|
503
503
|
if index == 1:
|
|
504
504
|
text = BASH_STATE.shell.before or ""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wcgw
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.1
|
|
4
4
|
Summary: Shell and coding agent on claude and chatgpt
|
|
5
5
|
Project-URL: Homepage, https://github.com/rusiaaman/wcgw
|
|
6
6
|
Author-email: Aman Rusia <gapypi@arcfu.com>
|
|
@@ -8,7 +8,7 @@ Requires-Python: <3.13,>=3.11
|
|
|
8
8
|
Requires-Dist: anthropic>=0.39.0
|
|
9
9
|
Requires-Dist: fastapi>=0.115.0
|
|
10
10
|
Requires-Dist: humanize>=4.11.0
|
|
11
|
-
Requires-Dist: mcp
|
|
11
|
+
Requires-Dist: mcp-wcgw
|
|
12
12
|
Requires-Dist: openai>=1.46.0
|
|
13
13
|
Requires-Dist: petname>=2.6
|
|
14
14
|
Requires-Dist: pexpect>=4.9.0
|
|
@@ -10,13 +10,13 @@ wcgw/client/diff-instructions.txt,sha256=s5AJKG23JsjwRYhFZFQVvwDpF67vElawrmdXwvu
|
|
|
10
10
|
wcgw/client/openai_client.py,sha256=uJ2l9NXsZuipUcJYR_bFcNNmNlfnCvPm6-M-LiVSVts,17942
|
|
11
11
|
wcgw/client/openai_utils.py,sha256=YNwCsA-Wqq7jWrxP0rfQmBTb1dI0s7dWXzQqyTzOZT4,2629
|
|
12
12
|
wcgw/client/sys_utils.py,sha256=GajPntKhaTUMn6EOmopENWZNR2G_BJyuVbuot0x6veI,1376
|
|
13
|
-
wcgw/client/tools.py,sha256=
|
|
13
|
+
wcgw/client/tools.py,sha256=ZLUlVDS-G-_UId5nJoeXINlvjvP2DUGLuTAFmHTDUvw,44131
|
|
14
14
|
wcgw/client/mcp_server/Readme.md,sha256=I8N4dHkTUVGNQ63BQkBMBhCCBTgqGOSF_pUR6iOEiUk,2495
|
|
15
15
|
wcgw/client/mcp_server/__init__.py,sha256=hyPPwO9cabAJsOMWhKyat9yl7OlSmIobaoAZKHu3DMc,381
|
|
16
|
-
wcgw/client/mcp_server/server.py,sha256=
|
|
16
|
+
wcgw/client/mcp_server/server.py,sha256=CNUOAd83lCq0Ed_ZRwd66gIjMFN9VBSO4moTLUPTWwM,11956
|
|
17
17
|
wcgw/relay/serve.py,sha256=KLYjTvM9CfqdxgFOfHM8LUkFGZ9kKyyJunpNdEIFQUk,8766
|
|
18
18
|
wcgw/relay/static/privacy.txt,sha256=s9qBdbx2SexCpC_z33sg16TptmAwDEehMCLz4L50JLc,529
|
|
19
|
-
wcgw-2.4.
|
|
20
|
-
wcgw-2.4.
|
|
21
|
-
wcgw-2.4.
|
|
22
|
-
wcgw-2.4.
|
|
19
|
+
wcgw-2.4.1.dist-info/METADATA,sha256=mjWjB7heir277o_H6FfQoabauQIgGTWFlKT548ToFNU,7955
|
|
20
|
+
wcgw-2.4.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
21
|
+
wcgw-2.4.1.dist-info/entry_points.txt,sha256=eKo1omwbAggWlQ0l7GKoR7uV1-j16nk9tK0BhC2Oz_E,120
|
|
22
|
+
wcgw-2.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|