@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Module @botmesh/core

    @botmesh/core — transport-agnostic bot engine.

    Flows, hooks, plugins, conversations, scheduler and DI. Pair it with a transport provider (@botmesh/baileys for WhatsApp) and, optionally, a store (@botmesh/sqlite-store, @botmesh/redis-store) and the @botmesh/ai plugin.

    This entry exports what an application needs: the Bot, the flow DSL, the message vocabulary, the option types and the errors an app can catch. The other entries:

    • @botmesh/core/testing: test kit (createTestBot, MockProvider, chaos kit, golden transcripts, crash simulation, in-memory coordinators).
    • @botmesh/core/spi: for authors of stores, durability backends, schedule stores, coordinators, tracer integrations and transports (reference backends, record types, key and form helpers).
    • @botmesh/core/dev: the botmesh dev terminal simulator.
    • @botmesh/core/internal: engine building blocks, with no semver guarantee.
    import { Bot, flow } from '@botmesh/core'
    import { BaileysProvider } from '@botmesh/baileys'

    const bot = new Bot({ provider: new BaileysProvider({ session: 'demo' }) })
    bot.when('hola', async (ctx) => await ctx.reply('¡Hola! 👋'))
    await bot.start()
    loadMediaOf
    isTypeTrigger
    isWelcomeTrigger
    typeTrigger
    defineBot
    isBotFactory
    isMainModule
    isCompiledFlow
    flow
    describeFlows
    describeTrigger
    lintFlows
    isFlowMediaKind
    toPrometheus
    definePlugin
    isPlugin
    splitMessage
    streamText
    createTranscript
    serializeTranscript
    parseTranscript
    transcriptFromMessages
    transcriptFromStore
    recordTranscript
    createRedactionMap
    redactTranscript
    userOf
    parseDuration
    validateConfig
    WaitAccepts
    ConversationFn
    ConversationOutcome
    SchemaWaitOptions
    WaitMediaType
    ConversationHandler
    IdleCallback
    SchedulerLease
    Fence
    LeaseLossReason
    HandoverFallback
    MessageHandler
    CommandHandler
    BotEventArgs
    RegisteredFlowInfo
    IdleHandler
    JsonValue
    MediaUnavailableReason
    MessagingSupport
    MessagingFeature
    ChatId
    UserId
    MessageId
    ChatKind
    MessageType
    MediaSource
    InboundListener
    InboundEvent
    OutboundContent
    StreamingMode
    TextFormat
    ConnectionState
    DisconnectReason
    StoreKind
    HookEvent
    HookPhase
    HookHandler
    HookErrorHandler
    HookContextOf
    HookBeforeContext
    AnyHookHandler
    SyncInstallError
    Plugin
    MissedRunPolicy
    DurableTaskHandler
    MatchStrategy
    TriggerScope
    Trigger
    BotFactory
    RetryBackoff
    EmptyFlowState
    FlowControls
    FlowStateWith
    FlowStateMerge
    FlowStateOf
    DynamicText
    FlowAction
    FlowGuard
    FlowDelay
    GuardFailure
    ChooseOption
    CompiledAskOptions
    CompiledStep
    FlowGraphNodeKind
    FlowGraphTimeoutSource
    FlowGraphEdgeKind
    FlowSource
    TriggerPatternInfo
    LintSeverity
    LintCode
    FlowMediaKind
    FlowFileMediaKind
    DynamicMediaSource
    FlowMediaSource
    SchemaParseResult
    InferSchema
    FormFieldType
    FormOptions
    FormField
    FormValue
    FormValues
    FormMode
    AccessListName
    AccessListAction
    AccessDecision
    HandoffEvent
    CoreMessageKey
    PluralCategory
    TranslateParams
    Translate
    LanguageDetector
    LangSource
    Config
    TriggerSkipReason
    StreamSource
    StreamStrategy
    TraceAttributeValue
    TraceAttributes
    SpanKind
    TranscriptTurn
    RedactionMap
    UserDataErrorCode
    RuntimeMessage
    ResolvedWaitOptions
    ConversationControlsBase
    ConversationRegistration
    EnterOptions
    ConversationStartInfo
    ConversationEndInfo
    ConversationObserver
    ConversationSnapshot
    ConversationControls
    LeaseProvider
    CoordinatorEvents
    Coordinator
    CoordinationConfig
    ConversationHandoverConfig
    HandoverContext
    InterruptedConversation
    ConversationHandoverEvent
    BotEvents
    StopOptions
    ConversationTarget
    LoadMediaOptions
    InboundDedupeOptions
    EchoFilterOptions
    FlowTriggerTarget
    FlowTriggerOptions
    IdleEvent
    SerializedMediaRef
    TypingConfig
    ReplyOptions
    EditOptions
    EditResult
    MessageRef
    ChatInfo
    SenderInfo
    MediaRef
    InboundLocation
    MediaPayload
    QuotedRef
    InboundMessage
    InboundInteraction
    DeliveryStatus
    InboundReaction
    PollVote
    GroupEvent
    PresenceEvent
    CallEvent
    Button
    ListSection
    SendOptions
    SendResult
    ProviderCapabilities
    DraftOptions
    ConnectionUpdate
    IProvider
    DefaultTools
    MessageContext
    SentMessage
    ContextI18n
    StoredMessage
    AIMessage
    StoredChat
    StoredContact
    FlowCheckpoint
    IStore
    LoggerLike
    BuiltinStoreConfig
    RateLimitRetryOptions
    BotConfig
    SubjectDataExport
    SubjectDeletionResult
    TypeTrigger
    WelcomeTrigger
    SendHookContext
    HookContextMap
    HookRegistration
    PluginContext
    PluginSpec
    ScheduledTask
    CronTaskOptions
    DurableTaskOptions
    ScheduledRun
    TriggerObject
    WaitOptions
    DurabilityMetrics
    DurabilityControl
    FileDurabilityOptions
    DurableKv
    DurabilityBackend
    DurabilityConfig
    SayStepOptions
    AskStepOptions
    ChooseStepOptions
    CompiledChooseOption
    CompiledFlow
    FlowGraphOption
    FlowGraphFormInfo
    FlowGraphNode
    FlowGraphEdge
    FlowGraphGroup
    FlowGraphFlow
    FlowGraph
    DescribeOptions
    FlowRoute
    FlowInventory
    FlowInventoryProvider
    TriggerInfo
    LintDiagnostic
    LintOptions
    FlowLocation
    FlowMediaOptions
    SchemaIssueLike
    SchemaLike
    FormFieldBase
    TextFormField
    NumberFormField
    EmailFormField
    DateFormField
    SelectFormField
    MultiSelectFormField
    OptInFormField
    FormDefinition
    FormReply
    FormStepOptions
    FormContent
    AccessListChange
    AccessListSnapshot
    WhitelistSnapshot
    AccessListsSnapshot
    HandoffConfig
    HandoffOptions
    ResumeOptions
    StoredHandoff
    HandoffState
    ResumeEvent
    PluralForms
    LocaleMessages
    I18nConfig
    BroadcastProgress
    BroadcastOptions
    BroadcastFailure
    BroadcastResult
    ConversationCounters
    BotMetricsSnapshot
    ConversationStartedEvent
    ConversationEndedEvent
    PrometheusOptions
    TriggerOptions
    TriggerResult
    TriggerRaw
    SlashCommandsConfig
    ScheduleStore
    SchedulerOptions
    MemoryStoreLogger
    MemoryStoreOptions
    StoreNamespace
    SplitTextOptions
    StreamOptions
    StreamResult
    StreamTarget
    SpanStatus
    SpanContextRef
    SpanException
    BotSpan
    SpanOptions
    BotTracer
    TelemetryConfig
    BotTracing
    TranscriptInbound
    TranscriptOutbound
    Transcript
    FromMessagesOptions
    TranscriptMessageSource
    TranscriptStoreOwner
    RecordTranscriptOptions
    TranscriptRecorder
    RedactionRule
    RedactOptions
    UserSetOptions
    UserData
    ConversationError
    ConversationTimeout
    ConversationCancelled
    RetriesExceeded
    ConversationEnded
    ConversationGoto
    ConcurrentWaitError
    ConversationRetry
    RetryUnavailableError
    ProviderNotLeaderError
    LeaseLostError
    CoordinationUnavailableError
    Bot
    BotNotRunningError
    InvalidProviderEventError
    MediaUnavailableError
    PacedSendCancelled
    ProviderError
    UnsupportedContentError
    RateLimitedError
    RecipientUnreachableError
    PayloadTooLargeError
    MediaTooLargeError
    OutsideSessionWindowError
    SendDeferredError
    FileDurability
    MemoryDurability
    FlowBuilder
    AccessList
    Whitelist
    MemoryStore
    NamespacedStore
    TranscriptFormatError
    RecordingProvider
    UserDataError
    TimeoutError
    ConfigValidationError
    WELCOME
    MEDIA
    IMAGE
    VIDEO
    AUDIO
    VOICE_NOTE
    DOCUMENT
    STICKER
    LOCATION
    CONTACT
    POLL
    CALL
    addKeyword
    FLOW_MEDIA_KINDS
    CORE_MESSAGES
    BUILTIN_LOCALES
    PROMETHEUS_CONTENT_TYPE
    slashCommandsPlugin
    TRACE_ATTR
    SPAN_NAMES
    TRANSCRIPT_FORMAT
    TRANSCRIPT_VERSION
    DEFAULT_MAX_TURNS