Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ rocklet = [
# Rocklet execution environment dependencies
"fastapi",
"uvicorn",
"pexpect",
"bashlex",
"pexpect; sys_platform != 'win32'",
"bashlex; sys_platform != 'win32'",
"psutil",
"twisted",
"gem-llm>=0.1.0",
"twisted; sys_platform != 'win32'",
"gem-llm>=0.1.0; sys_platform != 'win32'",
"numpy<=2.2.6",
]

Expand Down
15 changes: 15 additions & 0 deletions rock/rocklet/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ def __init__(self, message: str, *, extra_info: dict[str, Any] = None):
self.extra_info = extra_info


class PowerShellError(RockletException, RuntimeError):
"""Raised when a PowerShell session encounters an error."""

def __init__(self, message: str, *, extra_info: dict[str, Any] = None):
super().__init__(message)
if extra_info is None:
extra_info = {}
self.extra_info = extra_info


class PowerShellNotFoundError(RockletException, FileNotFoundError):
"""Raised when PowerShell executable is not found on the system."""
pass


class CommandTimeoutError(RockletException, RuntimeError, TimeoutError):
...

Expand Down
Loading
Loading