mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
Some checks are pending
Pre-commit / run (ubuntu-latest) (push) Waiting to run
Tests ReMe / Unit Tests - py3.11 (push) Waiting to run
Tests ReMe / Unit Tests - py3.12 (push) Waiting to run
Tests ReMe / Unit Tests - py3.13 (push) Waiting to run
Windows Smoke / CLI smoke - py3.11 (push) Waiting to run
* feat(core): add shell command execution and memory status reporting - Introduce ShellStep for executing shell commands with timeout support - Add StatusStep to report memory estimates for stateful data components - Register shell and status commands in default configuration - Update documentation with new reme status and shell command capabilities - Implement comprehensive unit tests for both new step types - Add support for asynchronous command execution with proper error handling * feat(config): add log_config option to suppress config loading logs - Add log_config parameter to resolve_app_config function with default True - Conditionally log config loading messages based on log_config flag - Update reme.py and service_utils.py to use log_config=False for client calls - Suppress config logging in user-facing contexts to avoid output pollution refactor(shell): rename command parameter to cmd for clarity - Change 'command' to 'cmd' in default.yaml configuration schema - Rename 'timeout' to 'shell_timeout' to avoid parameter name collisions - Update ShellStep to accept both legacy and new parameter names - Maintain backward compatibility with existing command/timeout usage test(shell): add comprehensive tests for shell step parameter handling - Add test cases for new cmd and shell_timeout parameter names - Verify legacy command and timeout parameters still work - Test blank command rejection message updated to use cmd - Create integration test for shell parameter payload passing * fix(shell): ensure proper environment loading and process timeout handling - Move load_env() call to execute before parse_args() in main function - Add proper process group killing for timeout scenarios on POSIX systems - Implement recursive child process termination on Windows for proper cleanup - Change parameter name from 'timeout' to 'shell_timeout' in shell execution - Remove support for legacy 'command' and 'timeout' parameter names - Update test cases to verify new timeout behavior and parameter requirements - Add comments explaining component size tracking implementation details
29 lines
719 B
Python
29 lines
719 B
Python
"""common steps"""
|
|
|
|
from .add import AddStep
|
|
from .demo import DemoEchoStep1, DemoEchoStep2
|
|
from .health_check import HealthCheckStep
|
|
from .help import HelpStep
|
|
from .llm_demo import LLMDemoStep
|
|
from .python_execute import PythonExecuteStep
|
|
from .shell import ShellStep
|
|
from .stream_demo import StreamDemoStep1, StreamDemoStep2
|
|
from .stream_llm_demo import StreamLLMDemoStep
|
|
from .status import StatusStep
|
|
from .version import VersionStep
|
|
|
|
__all__ = [
|
|
"AddStep",
|
|
"DemoEchoStep1",
|
|
"DemoEchoStep2",
|
|
"HealthCheckStep",
|
|
"HelpStep",
|
|
"LLMDemoStep",
|
|
"PythonExecuteStep",
|
|
"ShellStep",
|
|
"StreamDemoStep1",
|
|
"StreamDemoStep2",
|
|
"StreamLLMDemoStep",
|
|
"StatusStep",
|
|
"VersionStep",
|
|
]
|