Enhance platform toolset configuration and CLI toolset handling

- Introduced a new configuration section in `cli-config.yaml.example` for defining platform-specific toolsets, allowing for greater customization of available tools per platform.
- Updated the CLI to check for user-defined toolsets in the configuration, falling back to the default `hermes-cli` toolset if none are specified.
- Enhanced the `GatewayRunner` class to load platform-specific toolsets from the configuration, ensuring that the correct tools are enabled based on the platform being used.
This commit is contained in:
teknium1 2026-02-17 23:39:24 -08:00
parent 9e85408c7b
commit d59e93d5e9
3 changed files with 121 additions and 7 deletions

8
cli.py
View file

@ -1862,8 +1862,12 @@ def main(
else:
toolsets_list.append(str(t))
else:
# Default: use hermes-cli toolset for full CLI functionality including cronjob tools
toolsets_list = ["hermes-cli"]
# Check config for CLI toolsets, fallback to hermes-cli
config_cli_toolsets = CLI_CONFIG.get("platform_toolsets", {}).get("cli")
if config_cli_toolsets and isinstance(config_cli_toolsets, list):
toolsets_list = config_cli_toolsets
else:
toolsets_list = ["hermes-cli"]
# Create CLI instance
cli = HermesCLI(