wcgw 3.0.3__py3-none-any.whl → 3.0.4__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/bash_state/bash_state.py +0 -10
- wcgw/client/tools.py +5 -3
- {wcgw-3.0.3.dist-info → wcgw-3.0.4.dist-info}/METADATA +1 -1
- {wcgw-3.0.3.dist-info → wcgw-3.0.4.dist-info}/RECORD +7 -7
- {wcgw-3.0.3.dist-info → wcgw-3.0.4.dist-info}/WHEEL +0 -0
- {wcgw-3.0.3.dist-info → wcgw-3.0.4.dist-info}/entry_points.txt +0 -0
- {wcgw-3.0.3.dist-info → wcgw-3.0.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -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
|
wcgw/client/tools.py
CHANGED
|
@@ -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(
|
|
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:
|
|
@@ -7,8 +7,8 @@ wcgw/client/diff-instructions.txt,sha256=tmJ9Fu9XdO_72lYXQQNY9RZyx91bjxrXJf9d_KB
|
|
|
7
7
|
wcgw/client/memory.py,sha256=8LdYsOhvCOoC1kfvDr85kNy07WnhPMvE6B2FRM2w85Y,2902
|
|
8
8
|
wcgw/client/modes.py,sha256=FjIQOjT5oI7dk9VG0oRemN1A6EHBvHnuSQGKuRbguJI,10352
|
|
9
9
|
wcgw/client/tool_prompts.py,sha256=H36Sr3yH2YuHZTc08Y6rTUWlYWjKMFtIGP6vbAVNwZo,3988
|
|
10
|
-
wcgw/client/tools.py,sha256=
|
|
11
|
-
wcgw/client/bash_state/bash_state.py,sha256=
|
|
10
|
+
wcgw/client/tools.py,sha256=Sz6tCm9KXVKZHbUqGViYUZnhJ78oV4_k1USX205HLI0,25415
|
|
11
|
+
wcgw/client/bash_state/bash_state.py,sha256=FKeJU8g-wM9p7aq7EKog4NEm2fqzLiAbqdeIyPeuLpo,26117
|
|
12
12
|
wcgw/client/encoder/__init__.py,sha256=Y-8f43I6gMssUCWpX5rLYiAFv3D-JPRs4uNEejPlke8,1514
|
|
13
13
|
wcgw/client/file_ops/diff_edit.py,sha256=sIwXSSkWYff_Dp3oHfefqtSuFqLrxbhKvzkCoLuLqDE,18679
|
|
14
14
|
wcgw/client/file_ops/search_replace.py,sha256=Napa7IWaYPGMNdttunKyRDkb90elZE7r23B_o_htRxo,5585
|
|
@@ -51,8 +51,8 @@ mcp_wcgw/shared/memory.py,sha256=dBsOghxHz8-tycdSVo9kSujbsC8xb_tYsGmuJobuZnw,281
|
|
|
51
51
|
mcp_wcgw/shared/progress.py,sha256=ymxOsb8XO5Mhlop7fRfdbmvPodANj7oq6O4dD0iUcnw,1048
|
|
52
52
|
mcp_wcgw/shared/session.py,sha256=e44a0LQOW8gwdLs9_DE9oDsxqW2U8mXG3d5KT95bn5o,10393
|
|
53
53
|
mcp_wcgw/shared/version.py,sha256=d2LZii-mgsPIxpshjkXnOTUmk98i0DT4ff8VpA_kAvE,111
|
|
54
|
-
wcgw-3.0.
|
|
55
|
-
wcgw-3.0.
|
|
56
|
-
wcgw-3.0.
|
|
57
|
-
wcgw-3.0.
|
|
58
|
-
wcgw-3.0.
|
|
54
|
+
wcgw-3.0.4.dist-info/METADATA,sha256=Vak0DtA_0XgNc9RBaTsYKzJZm9pXGGyIaWXoVNYTIJ8,14049
|
|
55
|
+
wcgw-3.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
56
|
+
wcgw-3.0.4.dist-info/entry_points.txt,sha256=vd3tj1_Kzfp55LscJ8-6WFMM5hm9cWTfNGFCrWBnH3Q,124
|
|
57
|
+
wcgw-3.0.4.dist-info/licenses/LICENSE,sha256=BvY8xqjOfc3X2qZpGpX3MZEmF-4Dp0LqgKBbT6L_8oI,11142
|
|
58
|
+
wcgw-3.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|