progress-squash.yaml 1.1 KB

12345678910111213141516171819202122232425
  1. name: progress-squash
  2. repo: https://github.com/pierrenode/hermes-progress-squash
  3. sha: 044e6f1128037a58a76d5f6ff71df1607b4c1c63
  4. subdir: progress-squash
  5. description: >-
  6. Collapses carriage-return progress bars (tqdm, git clone --progress and similar) in terminal
  7. output to the frame a terminal would show, so the model reads one line instead of every redraw:
  8. a 300-step tqdm loop goes from 17,396 characters to about 120. Other text written between
  9. redraws, CRLF line endings and output without a carriage return are left as they are.
  10. Disclosure — register() adds one transform_terminal_output hook that rewrites the output string
  11. in memory; no tools, network access, subprocesses, files, settings or environment variables.
  12. maintainer: pierrenode
  13. tier: community
  14. category: tools
  15. requires_hermes: ">=0.21"
  16. docs_url: https://github.com/pierrenode/hermes-progress-squash
  17. version: "1.0.0"
  18. image: https://raw.githubusercontent.com/pierrenode/hermes-progress-squash/044e6f1128037a58a76d5f6ff71df1607b4c1c63/docs/card.png
  19. platforms: []
  20. capabilities:
  21. provides_tools: []
  22. provides_hooks:
  23. - transform_terminal_output
  24. provides_middleware: []
  25. requires_env: []