wcgw 2.4.0__py3-none-any.whl → 2.4.2__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.

@@ -6,12 +6,12 @@ import sys
6
6
  import traceback
7
7
  from typing import Any
8
8
 
9
- from mcp.server.models import InitializationOptions
10
- import mcp.types as types
11
- from mcp.types import Tool as ToolParam
12
- from mcp.server import NotificationOptions, Server
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 mcp.server.stdio
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 mcp.server.stdio.stdio_server() as (read_stream, write_stream):
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.0
3
+ Version: 2.4.2
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,6 @@ 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
12
11
  Requires-Dist: openai>=1.46.0
13
12
  Requires-Dist: petname>=2.6
14
13
  Requires-Dist: pexpect>=4.9.0
@@ -0,0 +1,44 @@
1
+ wcgw/__init__.py,sha256=9K2QW7QuSLhMTVbKbBYd9UUp-ZyrfBrxcjuD_xk458k,118
2
+ wcgw/types_.py,sha256=9h0-UKS4emx12eI24VSfgvz8WW0p5hwxFwzq8Wvbk6w,1858
3
+ wcgw/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ wcgw/client/__main__.py,sha256=wcCrL4PjG51r5wVKqJhcoJPTLfHW0wNbD31DrUN0MWI,28
5
+ wcgw/client/anthropic_client.py,sha256=ymMi2Kmkcso_6PT8iuwsqLz4Ne6oTvId3OWBB4La3gc,21147
6
+ wcgw/client/cli.py,sha256=-z0kpDAW3mzfQrQeZfaVJhBCAQY3HXnt9GdgQ8s-u0Y,1003
7
+ wcgw/client/common.py,sha256=grH-yV_4tnTQZ29xExn4YicGLxEq98z-HkEZwH0ReSg,1410
8
+ wcgw/client/computer_use.py,sha256=35NKAlMrxwD0TBlMMRnbCwz4g8TBRGOlcy-cmS-yJ_A,15247
9
+ wcgw/client/diff-instructions.txt,sha256=s5AJKG23JsjwRYhFZFQVvwDpF67vElawrmdXwvukR1A,1683
10
+ wcgw/client/openai_client.py,sha256=uJ2l9NXsZuipUcJYR_bFcNNmNlfnCvPm6-M-LiVSVts,17942
11
+ wcgw/client/openai_utils.py,sha256=YNwCsA-Wqq7jWrxP0rfQmBTb1dI0s7dWXzQqyTzOZT4,2629
12
+ wcgw/client/sys_utils.py,sha256=GajPntKhaTUMn6EOmopENWZNR2G_BJyuVbuot0x6veI,1376
13
+ wcgw/client/tools.py,sha256=ZLUlVDS-G-_UId5nJoeXINlvjvP2DUGLuTAFmHTDUvw,44131
14
+ wcgw/client/mcp_server/Readme.md,sha256=I8N4dHkTUVGNQ63BQkBMBhCCBTgqGOSF_pUR6iOEiUk,2495
15
+ wcgw/client/mcp_server/__init__.py,sha256=hyPPwO9cabAJsOMWhKyat9yl7OlSmIobaoAZKHu3DMc,381
16
+ wcgw/client/mcp_server/server.py,sha256=CNUOAd83lCq0Ed_ZRwd66gIjMFN9VBSO4moTLUPTWwM,11956
17
+ wcgw/relay/serve.py,sha256=KLYjTvM9CfqdxgFOfHM8LUkFGZ9kKyyJunpNdEIFQUk,8766
18
+ wcgw/relay/static/privacy.txt,sha256=s9qBdbx2SexCpC_z33sg16TptmAwDEehMCLz4L50JLc,529
19
+ mcp_wcgw/__init__.py,sha256=fKCgOdN7cn7gR3YGFaGyV5Goe8A2sEyllLcsRkN0i-g,2601
20
+ mcp_wcgw/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
+ mcp_wcgw/types.py,sha256=Enq5vqOPaQdObK9OQuafdLuMxb5RsLQ3k_k613fK41k,30556
22
+ mcp_wcgw/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
+ mcp_wcgw/client/__main__.py,sha256=9ne6Gk1udW_GSwq7O7aZSYwwqSBTgyMVjNVc6s6GJoQ,2280
24
+ mcp_wcgw/client/session.py,sha256=RqdIN6ov9vklKY2B0-hvjIM5JtUetbyhhrF7a0HKAJ8,8044
25
+ mcp_wcgw/client/sse.py,sha256=qDaxXvcjfh9c4bcaLlRT0Bk_VXHLV9Iao6OPPaQ69Oo,6540
26
+ mcp_wcgw/client/stdio.py,sha256=KfIIcqPYxQch_rMABvp7LH8k9BkO1WEIr-MTe_HZQxM,3943
27
+ mcp_wcgw/server/__init__.py,sha256=xEX-pPL96vkS9p-xkA4Zgbl-R3riyOlSYBWyj-ktURc,19160
28
+ mcp_wcgw/server/__main__.py,sha256=re57YcuuIxypjzq0tIUgdq1VPmzzDBl7BzyZuDrfZOQ,1348
29
+ mcp_wcgw/server/models.py,sha256=ghdetxlFc4QhoEN9JdBbpGGyUZKZX2n3heMsjrwTaC8,310
30
+ mcp_wcgw/server/session.py,sha256=ZD0KHGOF3tih4aTFYTklvT7YKC5w9kf9-0wPja8rltE,10386
31
+ mcp_wcgw/server/sse.py,sha256=5IE0HPR9cN9yfWw3Qq81ENxJzK06DxJLb6rUDBwE7bQ,6863
32
+ mcp_wcgw/server/stdio.py,sha256=iy6xkRgNoK7bbyF-azmEWS2kHqfWPDBHNttmuscwNh4,2894
33
+ mcp_wcgw/server/websocket.py,sha256=2shuqa8JgQ9D7N52z32vZZe6E6Wqy07OilMjSMEh68Y,2234
34
+ mcp_wcgw/shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
+ mcp_wcgw/shared/context.py,sha256=insWMqwR5vVXuA2yqXbqAf9I8XzvNe71_3JOdCAYr3o,360
36
+ mcp_wcgw/shared/exceptions.py,sha256=RfKb8VrUooBnq_UAQhT4C0f-KJpDvkozRiD58nOqgq8,176
37
+ mcp_wcgw/shared/memory.py,sha256=dBsOghxHz8-tycdSVo9kSujbsC8xb_tYsGmuJobuZnw,2819
38
+ mcp_wcgw/shared/progress.py,sha256=ymxOsb8XO5Mhlop7fRfdbmvPodANj7oq6O4dD0iUcnw,1048
39
+ mcp_wcgw/shared/session.py,sha256=e44a0LQOW8gwdLs9_DE9oDsxqW2U8mXG3d5KT95bn5o,10393
40
+ mcp_wcgw/shared/version.py,sha256=d2LZii-mgsPIxpshjkXnOTUmk98i0DT4ff8VpA_kAvE,111
41
+ wcgw-2.4.2.dist-info/METADATA,sha256=hyO0tbDU7FBSsRNcuX8tnbyg_j2pTtdWm7JG9GY-UZQ,7931
42
+ wcgw-2.4.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
43
+ wcgw-2.4.2.dist-info/entry_points.txt,sha256=eKo1omwbAggWlQ0l7GKoR7uV1-j16nk9tK0BhC2Oz_E,120
44
+ wcgw-2.4.2.dist-info/RECORD,,
@@ -1,22 +0,0 @@
1
- wcgw/__init__.py,sha256=9K2QW7QuSLhMTVbKbBYd9UUp-ZyrfBrxcjuD_xk458k,118
2
- wcgw/types_.py,sha256=9h0-UKS4emx12eI24VSfgvz8WW0p5hwxFwzq8Wvbk6w,1858
3
- wcgw/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- wcgw/client/__main__.py,sha256=wcCrL4PjG51r5wVKqJhcoJPTLfHW0wNbD31DrUN0MWI,28
5
- wcgw/client/anthropic_client.py,sha256=ymMi2Kmkcso_6PT8iuwsqLz4Ne6oTvId3OWBB4La3gc,21147
6
- wcgw/client/cli.py,sha256=-z0kpDAW3mzfQrQeZfaVJhBCAQY3HXnt9GdgQ8s-u0Y,1003
7
- wcgw/client/common.py,sha256=grH-yV_4tnTQZ29xExn4YicGLxEq98z-HkEZwH0ReSg,1410
8
- wcgw/client/computer_use.py,sha256=35NKAlMrxwD0TBlMMRnbCwz4g8TBRGOlcy-cmS-yJ_A,15247
9
- wcgw/client/diff-instructions.txt,sha256=s5AJKG23JsjwRYhFZFQVvwDpF67vElawrmdXwvukR1A,1683
10
- wcgw/client/openai_client.py,sha256=uJ2l9NXsZuipUcJYR_bFcNNmNlfnCvPm6-M-LiVSVts,17942
11
- wcgw/client/openai_utils.py,sha256=YNwCsA-Wqq7jWrxP0rfQmBTb1dI0s7dWXzQqyTzOZT4,2629
12
- wcgw/client/sys_utils.py,sha256=GajPntKhaTUMn6EOmopENWZNR2G_BJyuVbuot0x6veI,1376
13
- wcgw/client/tools.py,sha256=JEe6M1eHmjSIFRvbHLNcKLL9Ke_yPRhdkf6gJH7cu7Q,44104
14
- wcgw/client/mcp_server/Readme.md,sha256=I8N4dHkTUVGNQ63BQkBMBhCCBTgqGOSF_pUR6iOEiUk,2495
15
- wcgw/client/mcp_server/__init__.py,sha256=hyPPwO9cabAJsOMWhKyat9yl7OlSmIobaoAZKHu3DMc,381
16
- wcgw/client/mcp_server/server.py,sha256=jzkL9fwXF-r_3AO4OMl-fnp0bKrEBxjDtJKu0semYOk,11926
17
- wcgw/relay/serve.py,sha256=KLYjTvM9CfqdxgFOfHM8LUkFGZ9kKyyJunpNdEIFQUk,8766
18
- wcgw/relay/static/privacy.txt,sha256=s9qBdbx2SexCpC_z33sg16TptmAwDEehMCLz4L50JLc,529
19
- wcgw-2.4.0.dist-info/METADATA,sha256=CE_KnK39ElInJ5Pkd6WCO8oT9QMTcWJJXcCBOdHNmC4,7950
20
- wcgw-2.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
21
- wcgw-2.4.0.dist-info/entry_points.txt,sha256=eKo1omwbAggWlQ0l7GKoR7uV1-j16nk9tK0BhC2Oz_E,120
22
- wcgw-2.4.0.dist-info/RECORD,,
File without changes