Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

1.2 KB
Raw Blame
import { ACTIVATE_TOOLS_AUDIT, activateToolsAudit } from '@lobechat/builtin-tool-activator';
import {
  AGENT_ACCOUNT_OUTBOUND_AUDIT,
  agentAccountOutboundAudit,
} from '@lobechat/builtin-tool-agent-account';
import { CLOUD_SANDBOX_DELETE_AUDIT, deleteFilesAudit } from '@lobechat/builtin-tool-cloud-sandbox';
import { createDryRunAudit, DASHBOARD_DRY_RUN_AUDIT } from '@lobechat/builtin-tool-dashboard';
import { pathScopeAudit } from '@lobechat/builtin-tool-local-system';
import { type DynamicInterventionResolver } from '@lobechat/types';

export const dynamicInterventionAudits: Record<string, DynamicInterventionResolver> = {
  // Without a version loader this asks the user for every dry run; hosts that
  // can read the version (agent runtime service, client streaming executor)
  // register a loader-backed audit under the same key.
  [DASHBOARD_DRY_RUN_AUDIT]: createDryRunAudit(),
  [ACTIVATE_TOOLS_AUDIT]: activateToolsAudit,
  [AGENT_ACCOUNT_OUTBOUND_AUDIT]: agentAccountOutboundAudit,
  // Permanent deletion asks, unless the storage service will itself refuse
  // anything that is not a dependency, cache or build output.
  [CLOUD_SANDBOX_DELETE_AUDIT]: deleteFilesAudit,
  pathScopeAudit,
};