chore(repo): initialize Cowork Local Gitea repository
CI / test (push) Canceled after 0s

This commit is contained in:
thanhnv
2026-08-09 20:12:05 +07:00
commit 414eaddca3
192 changed files with 48160 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
"""Attachment validator — inspects attached files for security risks."""
from __future__ import annotations
from .command_risk_classifier import classify_attachment
ATTACHMENT_DENIED_MESSAGE = "Attached content failed security validation."
def validate_attachment(path: str, mime_type: str = "") -> bool:
result = classify_attachment(path, mime_type or None)
return not result.blocked