Skip to content

Add a textutil proxy for document-to-text conversion#2691

Open
sayantanmandal1 wants to merge 1 commit into
rtk-ai:developfrom
sayantanmandal1:textutil-proxy
Open

Add a textutil proxy for document-to-text conversion#2691
sayantanmandal1 wants to merge 1 commit into
rtk-ai:developfrom
sayantanmandal1:textutil-proxy

Conversation

@sayantanmandal1

Copy link
Copy Markdown

Closes #2678.

Adds rtk textutil. A txt conversion to stdout gets the same blank-line / trailing-whitespace cleanup as rtk read (capped with a [N more lines] marker), -info folds to a single line, and everything else (markup conversions, file output, flags I didn't recognise) passes straight through. Wired in like the other system proxies, with a discover rule and unit tests + fixtures.

Heads up: I don't have a Mac to capture a real -info block, so that fixture is a representative sample. The filter just folds Label: value lines, so it should hold, but worth a quick check against real textutil -info output.

Wraps macOS textutil so a txt conversion to stdout gets the same
blank-line and trailing-whitespace cleanup as `rtk read` (capped with a
[N more lines] marker), -info folds to one line, and anything else
passes through untouched.

Closes rtk-ai#2678
@CLAassistant

CLAassistant commented Jun 28, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: add textutil support for token-optimized document conversion

2 participants