Files
Clawd BotandClaude Opus 4.6 ca9b510922 chore: align with upstream openclaw/openclaw and overlay local additions
- Reset master to upstream/main (16,697 commits)
- Overlay 2,271 local-only files (skills, tools, workspace, configs, apps)
- Restore IDENTITY.md and USER.md templates
- Build verified, gateway running, Discord working

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-03 07:40:46 +01:00

38 lines
756 B
Python

INTERNAL_ACTIONS = {
"restart_container",
"refresh_status",
"reassign_workload",
"collect_logs",
"update_metrics",
"organize_files",
"git_commit",
}
EXTERNAL_ACTIONS = {
"send_discord",
"send_email",
"publish_message",
"home_automation_changes",
"create_github_issue",
"post_to_social",
}
FORBIDDEN_ACTIONS = {
"delete_data",
"shutdown_node",
"purchase",
"public_posting",
"share_private_info",
}
def classify_action(action: str) -> str:
action = action.strip().lower()
if action in FORBIDDEN_ACTIONS:
return "forbidden"
if action in EXTERNAL_ACTIONS:
return "external"
if action in INTERNAL_ACTIONS:
return "internal"
return "unknown"