Documentation
    Preparing search index...

    @kehto/services — Reference service implementations for the napplet protocol.

    Provides factory functions for creating ServiceHandler implementations:

    • createNotificationService() — Notification state management

    These are reference implementations. Shell hosts wire them into the runtime via registerService(). The services are browser-agnostic — shell adapters provide browser-specific callbacks.

    import { createNotificationService } from '@kehto/services';
    import type { Notification } from '@kehto/services';

    const notifications = createNotificationService({ onChange: (list) => updateBadge(list) });

    runtime.registerService('notify', notifications);

    Classes

    DmMemoryStore
    FsServiceError
    LlmServiceError
    ResourceAuthorizationError
    ResourceServiceError

    Interfaces

    BleServiceContext
    BleServiceOptions
    BrowserMediaPlaybackOptions
    CacheServiceOptions
    CatalogIntentResolver
    CatalogIntentResolverOptions
    CommonServiceContext
    CommonServiceOptions
    ConfigService
    ConfigServiceOptions
    ConfigSettingsContext
    CoordinatedRelayOptions
    CordnCodecResult
    CordnCoordinatorClient
    CordnCoordinatorSubscription
    CordnDmAdapterOptions
    CordnDmClient
    CordnGroupMessage
    CordnRelayCoordinatorOptions
    CountRequest
    CountResult
    CountServiceOptions
    CvmCloseMessage
    CvmCloseResultMessage
    CvmConcurrencyOptions
    CvmDiscoverErrorResultMessage
    CvmDiscoverMessage
    CvmDiscoverQuery
    CvmDiscoverSuccessResultMessage
    CvmEventMessage
    CvmRegistryCallOptions
    CvmRegistryEntry
    CvmRegistryFamily
    CvmRegistryOptions
    CvmRegistryQuery
    CvmRegistryTool
    CvmRequestMessage
    CvmRequestOptions
    CvmRequestResultMessage
    CvmServer
    CvmServerRef
    CvmService
    CvmServiceOptions
    CvmTransport
    CvmTransportExecution
    DmAdapter
    DmConversation
    DmConversationPage
    DmConversationQuery
    DmMessage
    DmMessagePage
    DmMessageQuery
    DmOk
    DmPeer
    DmRelayPool
    DmSendRequest
    DmSendResult
    DmService
    DmServiceOptions
    DmStatus
    DmSubscribeRequest
    DmSubscription
    FsBackend
    FsBackendWatch
    FsService
    FsServiceOptions
    GamepadPadSample
    GamepadService
    GamepadServiceOptions
    HostKeyEvent
    HostKeysBridge
    HostMediaBridge
    HttpLlmProviderOptions
    HttpUploaderOptions
    HttpUploaderRails
    IdentityServiceOptions
    IntentArchetypeSupport
    IntentAvailability
    IntentBehavior
    IntentCandidate
    IntentCatalogEntry
    IntentContract
    IntentDelivery
    IntentDispatchParams
    IntentHandlerHint
    IntentRequest
    IntentResolver
    IntentResolverContext
    IntentServiceOptions
    IntentTargetAcceptance
    IntentTargetController
    KeysServiceOptions
    LinkOpenContext
    LinkServiceOptions
    ListsMutationPlan
    ListsServiceContext
    ListsServiceOptions
    LlmApi
    LlmCancelMessage
    LlmConnection
    LlmConnectionHost
    LlmDelta
    LlmDeltaMessage
    LlmDescribeMessage
    LlmFailure
    LlmFetchResponse
    LlmGenerateHooks
    LlmGenerateMessage
    LlmGenerateOptions
    LlmGeneration
    LlmGenerationRequest
    LlmHttpRequest
    LlmImagePart
    LlmMessage
    LlmModel
    LlmNamedToolChoice
    LlmPromptOptions
    LlmProviderEndpoint
    LlmProviderPreset
    LlmProviderRequestOptions
    LlmRequestContext
    LlmRequirements
    LlmResponsesOptions
    LlmSelectMessage
    LlmService
    LlmServiceOptions
    LlmStreamAccumulator
    LlmTextPart
    LlmThinkingPart
    LlmTool
    LlmToolCallPart
    LlmUsage
    ManifestArchetypeInput
    McpContentBlock
    McpMessage
    McpTool
    McpToolResult
    MediaPlayback
    MediaPlaybackBackend
    MediaPlaybackCommand
    MediaPlaybackState
    MediaService
    MediaServiceOptions
    MediaSessionCreateOptions
    MediaSessionSnapshot
    MediaSourceRef
    NdrDmAdapterOptions
    NdrRelayTransport
    NdrRelayTransportOptions
    NdrRumorLike
    NdrRuntimeLike
    Nip17DmAdapterOptions
    Notification
    NotificationServiceOptions
    NotifyPresentation
    NotifyServiceOptions
    OutboxEventOptions
    OutboxEventResult
    OutboxPublishOptions
    OutboxPublishResult
    OutboxQueryOptions
    OutboxQueryStream
    OutboxQueryStreamSink
    OutboxRelayPlan
    OutboxRelayPool
    OutboxResult
    OutboxRouter
    OutboxRouterSubscription
    OutboxServiceOptions
    OutboxSubscribeOptions
    OutboxSubscriptionSink
    OutboxTarget
    RailServerConfig
    RelayListEntry
    RelayPoolOutboxRouterOptions
    RelayPoolServiceOptions
    ResourceBytesRequest
    ResourceFetchInit
    ResourceInfo
    ResourceInfoContext
    ResourceSchemeInfo
    ResourceService
    ResourceServiceOptions
    SerialServiceContext
    SerialServiceOptions
    StreamingOutboxRouter
    ThemeService
    ThemeServiceOptions
    UploadDimensions
    Uploader
    UploaderContext
    UploadExecutionPlan
    UploadInfo
    UploadInfoContext
    UploadRailInfo
    UploadRequest
    UploadResult
    UploadServiceOptions
    UploadStatus
    WebrtcOpenPlan
    WebrtcServiceContext
    WebrtcServiceOptions

    Type Aliases

    AuthorizeNetwork
    CommonRelayOperation
    ConfigSchemaValidation
    CvmDiscoverResultMessage
    CvmInboundMessage
    CvmOutboundMessage
    CvmRegistrySelector
    CvmRequestHandle
    CvmTransportError
    DmHexPubkey
    DmMessageStatus
    DmTimestamp
    FsBackendChange
    HostCacheBridge
    HttpLlmProvider
    IntentResult
    LlmBlockEvent
    LlmCancelResultMessage
    LlmCredentialHeader
    LlmDeltaBlock
    LlmDeltaEvent
    LlmDescribeResultMessage
    LlmErrorCode
    LlmFetch
    LlmFinish
    LlmFormat
    LlmGenerateResultMessage
    LlmImageMimeType
    LlmInboundMessage
    LlmNapMessage
    LlmOutboundMessage
    LlmOutputPart
    LlmPart
    LlmPendingGeneration
    LlmProviderProtocol
    LlmReply
    LlmRole
    LlmSelectResultMessage
    LlmToolChoice
    LlmToolChoiceMode
    MaybePromise
    MediaAction
    MediaMetadataLike
    MediaPlaybackOwner
    MediaSessionTarget
    NostrTag
    NotifyInteractionMessage
    OutboxRelayOrigin
    ResourceErrorCode
    ResourceInfoProvider
    SignEvent
    UploadInfoProvider
    UploadRail
    UploadState

    Variables

    DEFAULT_CVM_MAX_IN_FLIGHT
    DEFAULT_CVM_MAX_QUEUED
    isLlmGeneration
    LLM_DOMAIN
    LLM_ERROR_CODES
    LLM_PROVIDER_PRESETS

    Functions

    browserGamepadOptions
    buildLlmProviderRequest
    computeCvmToolSchemaHash
    countLlmImages
    createBleService
    createBrowserMediaBridge
    createBrowserMediaPlayback
    createBrowserMediaStreamFetch
    createCacheService
    createCatalogIntentResolver
    createCommonService
    createConfigService
    createCoordinatedRelay
    createCordnDmAdapter
    createCordnRelayCoordinatorClient
    createCountService
    createCvmService
    createDmService
    createFsService
    createGamepadService
    createHttpLlmProvider
    createHttpUploader
    createIdentityService
    createIntentService
    createKeysService
    createLinkService
    createListsService
    createLlmService
    createLlmStreamAccumulator
    createMediaService
    createNdrDmAdapter
    createNdrRelayTransport
    createNip17DmAdapter
    createNotificationService
    createNotifyService
    createOutboxService
    createRelayPoolOutboxRouter
    createRelayPoolService
    createResourceService
    createSerialService
    createThemeService
    createUploadService
    createWebrtcService
    decodeWebrtcBytes
    encodeWebrtcBytes
    isJsonObjectText
    isLlmGenerationRequest
    isLlmRequirements
    manifestToIntentCatalogEntry
    mountMediaPlayer
    parseLlmProviderResponse
    readLlmSseData
    resolveConfigValues
    validateConfigSchema