deprecate allowedBashPatterns with warning instead of hard removal
This commit is contained in:
parent
29724f5021
commit
4ee7967e2a
1 changed files with 17 additions and 0 deletions
|
|
@ -129,6 +129,17 @@ 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__hyperhive__bash_run
|
||||||
|
instead. Remove this option from your agent.nix.
|
||||||
|
'';
|
||||||
|
visible = false;
|
||||||
|
};
|
||||||
|
|
||||||
options.hyperhive.allowedRecipients = lib.mkOption {
|
options.hyperhive.allowedRecipients = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
|
|
@ -599,6 +610,12 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
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__hyperhive__bash_run instead.
|
||||||
|
Remove allowedBashPatterns from your agent.nix.
|
||||||
|
'';
|
||||||
|
|
||||||
assertions = [
|
assertions = [
|
||||||
# Guard the inputs-routed-as-output pattern: the agent flake.nix is
|
# Guard the inputs-routed-as-output pattern: the agent flake.nix is
|
||||||
# expected to set `_module.args.flakeInputs = builtins.removeAttrs inputs ["self"]`.
|
# expected to set `_module.args.flakeInputs = builtins.removeAttrs inputs ["self"]`.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue