22bd8d6824
* feat: support anthropic skills closes: #4687 * chore: ruff * feat: implement skills management and selection in persona configuration * feat: enhance skills management with local environment tools and permissions
22 lines
430 B
Python
22 lines
430 B
Python
"""
|
|
Shell component
|
|
"""
|
|
|
|
from typing import Any, Protocol
|
|
|
|
|
|
class ShellComponent(Protocol):
|
|
"""Shell operations component"""
|
|
|
|
async def exec(
|
|
self,
|
|
command: str,
|
|
cwd: str | None = None,
|
|
env: dict[str, str] | None = None,
|
|
timeout: int | None = 30,
|
|
shell: bool = True,
|
|
background: bool = False,
|
|
) -> dict[str, Any]:
|
|
"""Execute shell command"""
|
|
...
|