style(kvb-org-operator): drop two trip-wire comments
🎯 Fix: 98 % 💥 Break: 1 % 💸 Cost: 100 % ⏱️ Time: 100 % 🛡️ Security: 100 % 🏆 Score: 97 🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 % Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c3ab6b7e18
commit
29d6afae72
1 file changed
-2
@@ -130,7 +130,6 @@ META = re.compile(r"[\s|&;()<>$`\\\"'*?\[\]{}~!#]")
|
||||
NAME = re.compile(r"^[A-Za-z0-9][A-Za-z0-9._+-]*$")
|
||||
COMMIT = re.compile(r"\bcommit\b")
|
||||
HEADER = "| # | Directory | Command | Why | Check |"
|
||||
# Trip-wire: agents name these repos, and git runs commands their config names (fsmonitor, hooks, pager, external diff, textconv, gpg, filters, lazy fetch) as the operator.
|
||||
GIT = ["git", "-c", "core.fsmonitor=false", "-c", "core.hooksPath=/dev/null", "-c", "log.showSignature=false", "--no-pager", "--no-optional-locks"]
|
||||
DIFF = [*GIT, "diff", "--no-ext-diff", "--no-textconv", "--ignore-submodules=all"]
|
||||
STYLES = {"head": "\x1b[1m", "label": "\x1b[2m", "command": "\x1b[1;36m", "preview": "\x1b[33m"}
|
||||
@@ -333,7 +332,6 @@ def cmd_list(rasci: ModuleType, args: argparse.Namespace) -> int:
|
||||
|
||||
|
||||
def runnable(row: dict) -> bool:
|
||||
# Trip-wire: legacy rows carry a prose title and no directory, and a newline written into the register shows as a typed \n but runs a second command; only printable rows recorded by `add` are commands.
|
||||
return bool(row["directory"] and row["command"]) and row["command"].isprintable() and row["check"] != "decision"
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user