mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-01 21:20:33 +00:00
Merge branch 'pr/663' into development
This commit is contained in:
parent
17e896b697
commit
267c6d49fd
19 changed files with 1000 additions and 187 deletions
|
|
@ -92,6 +92,16 @@ class PrintStyle:
|
|||
|
||||
def get(self, *args, sep=' ', **kwargs):
|
||||
text = sep.join(map(str, args))
|
||||
|
||||
# Automatically mask secrets in all print output
|
||||
try:
|
||||
from python.helpers.secrets import SecretsManager
|
||||
secrets_mgr = SecretsManager.get_instance()
|
||||
text = secrets_mgr.mask_values(text)
|
||||
except Exception:
|
||||
# If masking fails, proceed without masking to avoid breaking functionality
|
||||
pass
|
||||
|
||||
return text, self._get_styled_text(text), self._get_html_styled_text(text)
|
||||
|
||||
def print(self, *args, sep=' ', **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue