Repository navigation
Releases
Releases · Cipher208/opencode-doc-select
v0.1.0
First release.
What it does. doc_open renders a file in a tmux pane with line numbers; the user drags over the lines they mean and releases; doc_selection returns exactly that text with the file, line range and character count.
Security note. The first commit interpolated paths into the tmux command unquoted, which tmux runs through a shell. A filename containing ; executed a second command — confirmed end to end before fixing. Every interpolated value is now single-quoted, with six tests, and both directions were re-verified through tmux. Details in SECURITY.md.
Gates. 27 tests, and a typecheck proven to fail on an injected error. No || echo skipped anywhere.
Requires tmux and bun on PATH.