Pular para o conteúdo principal
P

dsh-rtk-minimal

paranoidphantom/dsh-rtk-minimal

Rewrites bash tool calls through `rtk rewrite` on the `tools/execute` hook, so it applies to any provider route. Zero dependencies and no build step: a single ESM module that adopts exit codes 0 and 3, runs the original command otherwise (no equivalent, deny rule, missing rtk, spawn failure), restores the original arguments after dispatch, and honors `RTK_PREFIX_ONLY` for direct `rtk <cmd>` prefixing and `DSH_RTK_BIN` to pin the binary.

Instalar

dsh plugin --profile web add github:paranoidphantom/dsh-rtk-minimal

README

dsh-rtk-minimal

npm

Minimal DSH plugin: every bash tool call goes through rtk before it runs.

Install

dsh plugin --profile web add dsh-rtk-minimal
# restart `dsh web`, then run any bash tool call

Uninstall: remove the dsh-rtk-minimal entry from the profile's cordis.patch.yml / bundles and dsh plugin --profile web remove dsh-rtk-minimal. The bundle patch is applied automatically on install, so it is active as soon as the host restarts — there is no on/off switch.

Test

node --test test.js   # 6 cases against a fake rtk binary

Plugins relacionados