revert: "read-to-open"

This reverts commit c48d2e6080.
This commit is contained in:
can1357
2026-04-24 22:33:52 +02:00
parent 99a21b95ba
commit d82377cda8
44 changed files with 442 additions and 300 deletions
@@ -6,7 +6,6 @@
* the specialized tools instead.
*/
import { type BashInterceptorRule, DEFAULT_BASH_INTERCEPTOR_RULES } from "../config/settings-schema";
import { resolveToolAlias } from "./index";
export interface InterceptionResult {
/** If true, the bash command should be blocked */
@@ -51,7 +50,7 @@ export function checkBashInterception(
for (const { rule, regex } of compiled) {
// Only block if the suggested tool is actually available
if (!availableTools.some(name => resolveToolAlias(name) === rule.tool)) {
if (!availableTools.includes(rule.tool)) {
continue;
}