Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
refactor(audit): align HIGH_LEVEL_ACTIONS with real logAuditEvent emitters (B/G3)
diegosouzapw8771e7232ebe
diff --git a/src/lib/audit/highLevelActions.ts b/src/lib/audit/highLevelActions.tsindex caab4657bc..92d062d600 100644--- a/src/lib/audit/highLevelActions.ts+++ b/src/lib/audit/highLevelActions.ts@@ -1,41 +1,52 @@+/**+ * HIGH_LEVEL_ACTIONS — allowlist of audit events that appear in the Activity feed.+ *+ * IMPORTANT: This list is intentionally aligned with the REAL action strings emitted+ * by `logAuditEvent()` calls throughout the repository. Do NOT use "clean" or invented+ * names — always grep for `logAuditEvent` in the codebase before adding or renaming+ * an entry here. If the upstream emitter name changes, update both the emitter and+ * this list atomically.+ *+ * Last synced: 2026-05 (B/G3 gap-closure). Source of truth: grep logAuditEvent repo.+ */export const HIGH_LEVEL_ACTIONS = [- // providers / providers connections- "provider.added",- "provider.removed",- "provider.tested",- // combos- "combo.created",- "combo.updated",- "combo.deleted",- // api keys- "apikey.created",- "apikey.revoked",- "apikey.rotated",- // budgets- "budget.threshold_reached",- // settings (relevantes — não TODO `setting.updated`)- "setting.updated",+ // providers / connections — ALINHADO COM `logAuditEvent` real+ "provider.credentials.created",+ "provider.credentials.applied",+ "provider.credentials.updated",+ "provider.credentials.revoked",+ "provider.credentials.batch_revoked",+ "provider.credentials.bulk_created",+ "provider.credentials.bulk_imported",+ "provider.credentials.imported",+ "provider.validation.ssrf_blocked",+// auth- "auth.login",- "auth.logout",- // cloud agents / MCP- "cloud_agent.session.created",- "mcp.tool.registered",- // webhooks- "webhook.created",- "webhook.deleted",- // quota share (B26)+ "auth.login.success",+ "auth.login.error",+ "auth.login.failed",+ "auth.login.locked",+ "auth.login.misconfigured",+ "auth.login.setup_required",+ "auth.logout.success",++ // sync tokens+ "sync.token.created",+ "sync.token.revoked",++ // settings — alinhado (plural)+ "settings.update",+ "settings.update_failed",++ // service operations+ "service.reveal_api_key",++ // quota sharing (B26 — adicionados por F8)"quota.pool.created","quota.pool.updated","quota.pool.deleted","quota.plan.updated","quota.store.driver_changed",- // platform- "update.applied",- "deploy.completed",- // skills- "skill.installed",- "skill.removed",] as const;export type HighLevelAction = (typeof HIGH_LEVEL_ACTIONS)[number];