wcgw 3.0.3__tar.gz → 3.0.4__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.

Files changed (123) hide show
  1. {wcgw-3.0.3 → wcgw-3.0.4}/PKG-INFO +1 -1
  2. {wcgw-3.0.3 → wcgw-3.0.4}/pyproject.toml +1 -1
  3. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/bash_state/bash_state.py +0 -10
  4. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/tools.py +5 -3
  5. {wcgw-3.0.3 → wcgw-3.0.4}/uv.lock +2 -1
  6. {wcgw-3.0.3 → wcgw-3.0.4}/.github/workflows/python-publish.yml +0 -0
  7. {wcgw-3.0.3 → wcgw-3.0.4}/.github/workflows/python-tests.yml +0 -0
  8. {wcgw-3.0.3 → wcgw-3.0.4}/.github/workflows/python-types.yml +0 -0
  9. {wcgw-3.0.3 → wcgw-3.0.4}/.gitignore +0 -0
  10. {wcgw-3.0.3 → wcgw-3.0.4}/.gitmodules +0 -0
  11. {wcgw-3.0.3 → wcgw-3.0.4}/.python-version +0 -0
  12. {wcgw-3.0.3 → wcgw-3.0.4}/.vscode/settings.json +0 -0
  13. {wcgw-3.0.3 → wcgw-3.0.4}/Dockerfile +0 -0
  14. {wcgw-3.0.3 → wcgw-3.0.4}/LICENSE +0 -0
  15. {wcgw-3.0.3 → wcgw-3.0.4}/README.md +0 -0
  16. {wcgw-3.0.3 → wcgw-3.0.4}/gpt_action_json_schema.json +0 -0
  17. {wcgw-3.0.3 → wcgw-3.0.4}/gpt_instructions.txt +0 -0
  18. {wcgw-3.0.3 → wcgw-3.0.4}/openai.md +0 -0
  19. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/.git +0 -0
  20. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  21. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  22. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/.github/workflows/main-checks.yml +0 -0
  23. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/.github/workflows/publish-pypi.yml +0 -0
  24. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/.github/workflows/pull-request-checks.yml +0 -0
  25. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/.github/workflows/shared.yml +0 -0
  26. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/.gitignore +0 -0
  27. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/.python-version +0 -0
  28. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/CODE_OF_CONDUCT.md +0 -0
  29. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/CONTRIBUTING.md +0 -0
  30. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/LICENSE +0 -0
  31. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/README.md +0 -0
  32. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/RELEASE.md +0 -0
  33. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/SECURITY.md +0 -0
  34. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/README.md +0 -0
  35. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-prompt/.python-version +0 -0
  36. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-prompt/README.md +0 -0
  37. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-prompt/mcp_simple_prompt/__init__.py +0 -0
  38. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-prompt/mcp_simple_prompt/__main__.py +0 -0
  39. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-prompt/mcp_simple_prompt/server.py +0 -0
  40. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-prompt/pyproject.toml +0 -0
  41. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-resource/.python-version +0 -0
  42. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-resource/README.md +0 -0
  43. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-resource/mcp_simple_resource/__init__.py +0 -0
  44. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-resource/mcp_simple_resource/__main__.py +0 -0
  45. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-resource/mcp_simple_resource/server.py +0 -0
  46. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-resource/pyproject.toml +0 -0
  47. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-tool/.python-version +0 -0
  48. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-tool/README.md +0 -0
  49. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-tool/mcp_simple_tool/__init__.py +0 -0
  50. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-tool/mcp_simple_tool/__main__.py +0 -0
  51. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-tool/mcp_simple_tool/server.py +0 -0
  52. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/examples/servers/simple-tool/pyproject.toml +0 -0
  53. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/pyproject.toml +0 -0
  54. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/__init__.py +0 -0
  55. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/client/__init__.py +0 -0
  56. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/client/__main__.py +0 -0
  57. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/client/session.py +0 -0
  58. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/client/sse.py +0 -0
  59. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/client/stdio.py +0 -0
  60. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/py.typed +0 -0
  61. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/server/__init__.py +0 -0
  62. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/server/__main__.py +0 -0
  63. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/server/models.py +0 -0
  64. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/server/session.py +0 -0
  65. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/server/sse.py +0 -0
  66. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/server/stdio.py +0 -0
  67. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/server/websocket.py +0 -0
  68. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/__init__.py +0 -0
  69. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/context.py +0 -0
  70. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/exceptions.py +0 -0
  71. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/memory.py +0 -0
  72. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/progress.py +0 -0
  73. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/session.py +0 -0
  74. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/version.py +0 -0
  75. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/src/mcp_wcgw/types.py +0 -0
  76. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/tests/__init__.py +0 -0
  77. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/tests/client/__init__.py +0 -0
  78. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/tests/client/test_session.py +0 -0
  79. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/tests/client/test_stdio.py +0 -0
  80. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/tests/conftest.py +0 -0
  81. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/tests/server/__init__.py +0 -0
  82. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/tests/server/test_session.py +0 -0
  83. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/tests/server/test_stdio.py +0 -0
  84. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/tests/shared/test_memory.py +0 -0
  85. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/tests/test_types.py +0 -0
  86. {wcgw-3.0.3 → wcgw-3.0.4}/src/mcp_wcgw_fork/uv.lock +0 -0
  87. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/__init__.py +0 -0
  88. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/__init__.py +0 -0
  89. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/common.py +0 -0
  90. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/diff-instructions.txt +0 -0
  91. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/encoder/__init__.py +0 -0
  92. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/file_ops/diff_edit.py +0 -0
  93. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/file_ops/search_replace.py +0 -0
  94. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/mcp_server/Readme.md +0 -0
  95. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/mcp_server/__init__.py +0 -0
  96. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/mcp_server/server.py +0 -0
  97. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/memory.py +0 -0
  98. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/modes.py +0 -0
  99. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/repo_ops/display_tree.py +0 -0
  100. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/repo_ops/path_prob.py +0 -0
  101. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/repo_ops/paths_model.vocab +0 -0
  102. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/repo_ops/paths_tokens.model +0 -0
  103. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/repo_ops/repo_context.py +0 -0
  104. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/client/tool_prompts.py +0 -0
  105. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/py.typed +0 -0
  106. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/relay/client.py +0 -0
  107. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/relay/serve.py +0 -0
  108. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/relay/static/privacy.txt +0 -0
  109. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw/types_.py +0 -0
  110. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw_cli/__init__.py +0 -0
  111. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw_cli/__main__.py +0 -0
  112. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw_cli/anthropic_client.py +0 -0
  113. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw_cli/cli.py +0 -0
  114. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw_cli/openai_client.py +0 -0
  115. {wcgw-3.0.3 → wcgw-3.0.4}/src/wcgw_cli/openai_utils.py +0 -0
  116. {wcgw-3.0.3 → wcgw-3.0.4}/static/claude-ss.jpg +0 -0
  117. {wcgw-3.0.3 → wcgw-3.0.4}/static/computer-use.jpg +0 -0
  118. {wcgw-3.0.3 → wcgw-3.0.4}/static/example.jpg +0 -0
  119. {wcgw-3.0.3 → wcgw-3.0.4}/static/rocket-icon.png +0 -0
  120. {wcgw-3.0.3 → wcgw-3.0.4}/static/ss1.png +0 -0
  121. {wcgw-3.0.3 → wcgw-3.0.4}/tests/test_edit.py +0 -0
  122. {wcgw-3.0.3 → wcgw-3.0.4}/tests/test_mcp_server.py +0 -0
  123. {wcgw-3.0.3 → wcgw-3.0.4}/tests/test_tools.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wcgw
3
- Version: 3.0.3
3
+ Version: 3.0.4
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>
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  authors = [{ name = "Aman Rusia", email = "gapypi@arcfu.com" }]
3
3
  name = "wcgw"
4
- version = "3.0.3"
4
+ version = "3.0.4"
5
5
  description = "Shell and coding agent on claude and chatgpt"
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.11"
@@ -468,16 +468,6 @@ class BashState:
468
468
  cwd: str,
469
469
  ) -> None:
470
470
  """Create a new BashState instance from a serialized state dictionary"""
471
- if (
472
- self._bash_command_mode == bash_command_mode
473
- and ((self._cwd == cwd) or not cwd)
474
- and (self._file_edit_mode == file_edit_mode)
475
- and (self._write_if_empty_mode == write_if_empty_mode)
476
- and (self._mode == mode)
477
- and (self._whitelist_for_overwrite == set(whitelist_for_overwrite))
478
- ):
479
- # No need to reset shell if the state is the same
480
- return
481
471
  self._bash_command_mode = bash_command_mode
482
472
  self._cwd = cwd or self._cwd
483
473
  self._file_edit_mode = file_edit_mode
@@ -324,7 +324,7 @@ def try_open_file(file_path: str) -> None:
324
324
  break
325
325
  except:
326
326
  continue
327
-
327
+
328
328
  # Try to open the file if a command is available
329
329
  if open_cmd:
330
330
  try:
@@ -698,7 +698,7 @@ def get_tool_output(
698
698
  context.console.print("Calling task memory tool")
699
699
  relevant_files = []
700
700
  warnings = ""
701
- arg.project_root_path = os.path.expanduser(arg.project_root_path)
701
+ arg.project_root_path = os.path.expanduser(arg.project_root_path)
702
702
  for fglob in arg.relevant_file_globs:
703
703
  fglob = expand_user(fglob)
704
704
  if not os.path.isabs(fglob) and arg.project_root_path:
@@ -708,7 +708,9 @@ def get_tool_output(
708
708
  if not globs:
709
709
  warnings += f"Warning: No files found for the glob: {fglob}\n"
710
710
  relevant_files_data = read_files(relevant_files[:10_000], None, context)
711
- save_path = save_memory(arg, relevant_files_data, context.bash_state.serialize())
711
+ save_path = save_memory(
712
+ arg, relevant_files_data, context.bash_state.serialize()
713
+ )
712
714
  if not relevant_files and arg.relevant_file_globs:
713
715
  output_ = f'Error: No files found for the given globs. Context file successfully saved at "{save_path}", but please fix the error.'
714
716
  elif warnings:
@@ -1,4 +1,5 @@
1
1
  version = 1
2
+ revision = 1
2
3
  requires-python = ">=3.11"
3
4
 
4
5
  [[package]]
@@ -1178,7 +1179,7 @@ wheels = [
1178
1179
 
1179
1180
  [[package]]
1180
1181
  name = "wcgw"
1181
- version = "3.0.3"
1182
+ version = "3.0.4"
1182
1183
  source = { editable = "." }
1183
1184
  dependencies = [
1184
1185
  { name = "anthropic" },
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
File without changes
File without changes
File without changes
File without changes