refactor: replace deprecated no-op options with mkRemovedOptionModule
This commit is contained in:
parent
43bbd64f82
commit
7ad2bb9211
8 changed files with 85 additions and 189 deletions
|
|
@ -12,17 +12,6 @@ let
|
|||
userName = config.hyperhive.user.name;
|
||||
in
|
||||
{
|
||||
options.hyperhive.allowedBashPatterns = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [ ];
|
||||
description = ''
|
||||
Deprecated - has no effect. The built-in Bash tool is fully
|
||||
disabled regardless of this list; agents use mcp__bash__run
|
||||
instead. Remove this option from your agent.nix.
|
||||
'';
|
||||
visible = false;
|
||||
};
|
||||
|
||||
options.hyperhive.allowedRecipients = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [ ];
|
||||
|
|
@ -148,12 +137,6 @@ in
|
|||
};
|
||||
|
||||
config = {
|
||||
warnings = lib.optional (config.hyperhive.allowedBashPatterns != [ ]) ''
|
||||
hyperhive.allowedBashPatterns is deprecated and has no effect.
|
||||
The built-in Bash tool is fully disabled; agents use mcp__bash__run instead.
|
||||
Remove allowedBashPatterns from your agent.nix.
|
||||
'';
|
||||
|
||||
# Auto-inject the built-in bash MCP server — always present, every
|
||||
# agent needs bash tools. `lib.mkDefault` so the operator's own
|
||||
# agent.nix can override the entry. (The matrix sibling lives in
|
||||
|
|
|
|||
Loading…
Reference in a new issue