PIPE-2738: dynamically strip Sphinx markup from task docstrings for terminal users
Updated `cli_wrapper` to automatically scrub Sphinx-specific reST directives
from task docstrings at runtime. This ensures that users running `help()` or `?`
in interactive environments (like IPython or casashell) see clean, readable
plain text instead of raw markup.
Specifically, this strips:
- Cross-reference roles (e.g., `:func:` -> ``` `func_name` ```)
- `.. figure::` blocks (retaining only the caption)
- `.. list-table::` blocks (retaining only the title and list items)
- `.. code-block::` directives