fix(dify_cli): solve the permission error on e2b

This commit is contained in:
Harry
2026-01-21 01:25:21 +08:00
parent 705d4cbba9
commit 7fd9ef3d22
4 changed files with 26 additions and 3 deletions

View File

@ -89,3 +89,12 @@ class CommandResult(BaseModel):
@property
def info_message(self) -> str:
return self.stdout.decode("utf-8", errors="replace") if self.stdout else ""
@property
def debug_message(self) -> str:
return (
f"stdout: {self.stdout.decode('utf-8', errors='replace')}\n"
f"stderr: {self.stderr.decode('utf-8', errors='replace')}\n"
f"exit_code: {self.exit_code}\n"
f"pid: {self.pid}"
)

View File

@ -30,7 +30,7 @@ class SandboxConfigValidationError(ValueError):
pass
class CommandExecutionError(Exception):
class CommandExecutionError(ValueError):
"""Raised when a command execution fails."""
result: CommandResult