import { defineAccount } from "../../automation/integrations" import * as actions from "./actions" import * as triggers from "./triggers" import { runClaudeAgent } from "./run" /** Declares a named Anthropic account binding for an automation project. */ export const anthropicAccount = defineAccount("anthropic") /** Public Claude Managed Agents namespace contract. */ export interface AnthropicCallables { addSessionFile: typeof actions.addClaudeSessionFile archiveAgent: typeof actions.archiveClaudeAgent archiveEnvironment: typeof actions.archiveClaudeEnvironment archiveSession: typeof actions.archiveClaudeAgentSession archiveSessionThread: typeof actions.archiveClaudeSessionThread confirmTool: typeof actions.confirmClaudeAgentTool createAgent: typeof actions.createClaudeAgent createEnvironment: typeof actions.createClaudeEnvironment defineOutcome: typeof actions.defineClaudeAgentOutcome deleteEnvironment: typeof actions.deleteClaudeEnvironment deleteSession: typeof actions.deleteClaudeAgentSession deleteSessionResource: typeof actions.deleteClaudeSessionResource getAgent: typeof actions.getClaudeAgent getEnvironment: typeof actions.getClaudeEnvironment getSession: typeof actions.getClaudeAgentSession getSessionResource: typeof actions.getClaudeSessionResource getSessionThread: typeof actions.getClaudeSessionThread interruptSession: typeof actions.interruptClaudeAgentSession listAgents: typeof actions.listClaudeAgents listAgentVersions: typeof actions.listClaudeAgentVersions listEnvironments: typeof actions.listClaudeEnvironments listSessionEvents: typeof actions.listClaudeSessionEvents listSessionResources: typeof actions.listClaudeSessionResources listSessions: typeof actions.listClaudeAgentSessions listSessionThreadEvents: typeof actions.listClaudeSessionThreadEvents listSessionThreads: typeof actions.listClaudeSessionThreads onAgentArchived: typeof triggers.onClaudeAgentArchived onAgentCreated: typeof triggers.onClaudeAgentCreated onAgentDeleted: typeof triggers.onClaudeAgentDeleted onAgentEvent: typeof triggers.onClaudeAgentEvent onAgentUpdated: typeof triggers.onClaudeAgentUpdated onEnvironmentArchived: typeof triggers.onClaudeEnvironmentArchived onEnvironmentCreated: typeof triggers.onClaudeEnvironmentCreated onEnvironmentDeleted: typeof triggers.onClaudeEnvironmentDeleted onEnvironmentEvent: typeof triggers.onClaudeEnvironmentEvent onEnvironmentUpdated: typeof triggers.onClaudeEnvironmentUpdated onSessionBudgetReached: typeof triggers.onClaudeSessionBudgetReached onSessionDeleted: typeof triggers.onClaudeSessionDeleted onSessionEvent: typeof triggers.onClaudeSessionEvent onSessionIdled: typeof triggers.onClaudeSessionIdled onSessionOutcomeEvaluationEnded: typeof triggers.onClaudeSessionOutcomeEvaluationEnded onSessionRescheduled: typeof triggers.onClaudeSessionRescheduled onSessionRunStarted: typeof triggers.onClaudeSessionRunStarted onSessionTerminated: typeof triggers.onClaudeSessionTerminated onSessionThreadCreated: typeof triggers.onClaudeSessionThreadCreated onSessionThreadIdled: typeof triggers.onClaudeSessionThreadIdled onSessionThreadTerminated: typeof triggers.onClaudeSessionThreadTerminated onSessionUpdated: typeof triggers.onClaudeSessionUpdated runAgent: typeof runClaudeAgent sendMessage: typeof actions.sendClaudeAgentMessage sendSessionEvents: typeof actions.sendClaudeSessionEvents sendSystemContext: typeof actions.sendClaudeSystemContext startSession: typeof actions.startClaudeAgentSession submitCustomToolResult: typeof actions.submitClaudeCustomToolResult updateAgent: typeof actions.updateClaudeAgent updateEnvironment: typeof actions.updateClaudeEnvironment updateRepositoryToken: typeof actions.updateClaudeRepositoryToken updateSession: typeof actions.updateClaudeAgentSession } /** Anthropic Claude Managed Agents callables. */ export const anthropic: AnthropicCallables = { addSessionFile: actions.addClaudeSessionFile, archiveAgent: actions.archiveClaudeAgent, archiveEnvironment: actions.archiveClaudeEnvironment, archiveSession: actions.archiveClaudeAgentSession, archiveSessionThread: actions.archiveClaudeSessionThread, confirmTool: actions.confirmClaudeAgentTool, createAgent: actions.createClaudeAgent, createEnvironment: actions.createClaudeEnvironment, defineOutcome: actions.defineClaudeAgentOutcome, deleteEnvironment: actions.deleteClaudeEnvironment, deleteSession: actions.deleteClaudeAgentSession, deleteSessionResource: actions.deleteClaudeSessionResource, getAgent: actions.getClaudeAgent, getEnvironment: actions.getClaudeEnvironment, getSession: actions.getClaudeAgentSession, getSessionResource: actions.getClaudeSessionResource, getSessionThread: actions.getClaudeSessionThread, interruptSession: actions.interruptClaudeAgentSession, listAgents: actions.listClaudeAgents, listAgentVersions: actions.listClaudeAgentVersions, listEnvironments: actions.listClaudeEnvironments, listSessionEvents: actions.listClaudeSessionEvents, listSessionResources: actions.listClaudeSessionResources, listSessions: actions.listClaudeAgentSessions, listSessionThreadEvents: actions.listClaudeSessionThreadEvents, listSessionThreads: actions.listClaudeSessionThreads, onAgentArchived: triggers.onClaudeAgentArchived, onAgentCreated: triggers.onClaudeAgentCreated, onAgentDeleted: triggers.onClaudeAgentDeleted, onAgentEvent: triggers.onClaudeAgentEvent, onAgentUpdated: triggers.onClaudeAgentUpdated, onEnvironmentArchived: triggers.onClaudeEnvironmentArchived, onEnvironmentCreated: triggers.onClaudeEnvironmentCreated, onEnvironmentDeleted: triggers.onClaudeEnvironmentDeleted, onEnvironmentEvent: triggers.onClaudeEnvironmentEvent, onEnvironmentUpdated: triggers.onClaudeEnvironmentUpdated, onSessionBudgetReached: triggers.onClaudeSessionBudgetReached, onSessionDeleted: triggers.onClaudeSessionDeleted, onSessionEvent: triggers.onClaudeSessionEvent, onSessionIdled: triggers.onClaudeSessionIdled, onSessionOutcomeEvaluationEnded: triggers.onClaudeSessionOutcomeEvaluationEnded, onSessionRescheduled: triggers.onClaudeSessionRescheduled, onSessionRunStarted: triggers.onClaudeSessionRunStarted, onSessionTerminated: triggers.onClaudeSessionTerminated, onSessionThreadCreated: triggers.onClaudeSessionThreadCreated, onSessionThreadIdled: triggers.onClaudeSessionThreadIdled, onSessionThreadTerminated: triggers.onClaudeSessionThreadTerminated, onSessionUpdated: triggers.onClaudeSessionUpdated, sendMessage: actions.sendClaudeAgentMessage, sendSessionEvents: actions.sendClaudeSessionEvents, sendSystemContext: actions.sendClaudeSystemContext, runAgent: runClaudeAgent, startSession: actions.startClaudeAgentSession, submitCustomToolResult: actions.submitClaudeCustomToolResult, updateAgent: actions.updateClaudeAgent, updateEnvironment: actions.updateClaudeEnvironment, updateRepositoryToken: actions.updateClaudeRepositoryToken, updateSession: actions.updateClaudeAgentSession, } export * from "./actions" export * from "./lib" export * from "./triggers" export * from "./run" export type { AnthropicEvent, AnthropicRunEvent, } from "@automate.ax/integration-contracts/anthropic"