Skip to content

Commit

Permalink
Upgraded syntax checker. Fixed starting workspace in case it didn't e…
Browse files Browse the repository at this point in the history
…xist, cd to it
  • Loading branch information
rusiaaman committed Jan 20, 2025
1 parent 2083b0c commit d3077fb
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 173 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
authors = [{ name = "Aman Rusia", email = "[email protected]" }]
name = "wcgw"
version = "2.8.2"
version = "2.8.3"
description = "Shell and coding agent on claude and chatgpt"
readme = "README.md"
requires-python = ">=3.11, <3.13"
Expand All @@ -22,9 +22,9 @@ dependencies = [
"pydantic>=2.9.2",
"semantic-version>=2.10.0",
"anthropic>=0.39.0",
"syntax-checker==0.2.10",
"tokenizers>=0.21.0",
"pygit2>=1.16.0",
"syntax-checker>=0.3.0",
]

[project.urls]
Expand Down
5 changes: 4 additions & 1 deletion src/wcgw/client/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ def start_shell(is_restricted_mode: bool, initial_dir: str) -> pexpect.spawn: #
timeout=TIMEOUT,
cwd=initial_dir,
)
shell.sendline(f"export PROMPT_COMMAND= PS1={PROMPT}") # Unset prompt command to avoid interfering
shell.sendline(
f"export PROMPT_COMMAND= PS1={PROMPT}"
) # Unset prompt command to avoid interfering
shell.expect(PROMPT, timeout=TIMEOUT)
except Exception as e:
console.print(traceback.format_exc())
Expand Down Expand Up @@ -440,6 +442,7 @@ def initialize(
if os.path.abspath(any_workspace_path):
os.makedirs(any_workspace_path, exist_ok=True)
repo_context = f"\nInfo: Workspace path {any_workspace_path} did not exist. I've created it for you.\n"
folder_to_start = Path(any_workspace_path)
else:
repo_context = (
f"\nInfo: Workspace path {any_workspace_path} does not exist."
Expand Down
Loading

0 comments on commit d3077fb

Please sign in to comment.