feat: casan chat optz

This commit is contained in:
thanhnv
2026-07-19 12:14:12 +07:00
parent 709b6cccd6
commit f462079435
16 changed files with 486 additions and 90 deletions
@@ -14,6 +14,8 @@ import os
import subprocess
import sys
PYTHON_BIN = sys.executable or "/usr/bin/python3"
def project_root() -> str:
d = os.path.abspath(os.path.dirname(__file__))
@@ -154,7 +156,7 @@ def decision_payload(args, decision: str, reason: str, agent=None, skill="", too
def run_rbac(args):
r = subprocess.run([
"python3", RBAC, "check",
PYTHON_BIN, RBAC, "check",
"--role", args.role,
"--resource", "chat",
"--action", "select_agent",