mirror of
https://github.com/GMGNAI/gmgn-skills.git
synced 2026-08-23 04:58:11 +00:00
feat(cli): surface a notice when output sanitization strips metadata
Give operators/agents visibility into when the CLI neutralizes suspicious token metadata in an API response. - sanitizeForOutputWithCount returns the cleaned value plus the number of altered strings; sanitizeForOutput kept as a thin wrapper - printResult prints "[gmgn-cli] Notice: neutralized N suspicious metadata value(s)" to stderr when anything was filtered (extra detail under GMGN_DEBUG); sanitized JSON still goes to stdout so piping is unaffected - document the notice in the gmgn-token SKILL untrusted-data warning Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
fdc7a3fb16
commit
06f5a70291
Binary file not shown.
Reference in New Issue
Block a user