dsh-plugin-sudo:在掩碼面板裏提權,密碼不進對話與模型上下文
lovesion 維護的 DSH 插件 dsh-plugin-sudo 提供 sudo_run 工具:Agent 需 root 時通過 userQuestions 在掩碼提問面板收集密碼,經 stdin 交給 sudo,密碼不進工具參數、會話聊天或模型上下文。介紹安裝(克隆至 profile 並 patch cordis)、參數與返回碼、工作流程與安全邊界,並說明 requiretty、yay/paru、Windows 等限制。MIT,Node >=20,npm 包暫未發佈。
閱讀全文