Files
Netcatty/infrastructure
Radwan Selo 9d4e90b3aa feat(ai): add query and group filters to vault_hosts_list (#4278)
vault_hosts_list always returned every saved host, which costs a lot of
tokens in large vaults when the agent only needs one host to resolve a
hostId.

Add two optional parameters:
- query: case-insensitive; every space-separated word must match the
  label, hostname, username, or tags. Does not search group.
- group: group path that also matches subgroups on a path boundary
  (prod matches prod/web, not production). Case-sensitive.

Missing, empty, or non-string filters mean no filter, so existing calls
return the same result as before. Malformed host data (non-array tags)
no longer risks crashing the listing.

Regenerated the capability tool specs.
2026-11-21 20:16:14 +08:00
..