Documentation
    Preparing search index...

    Module @karmaniverous/jeeves-watcher-core

    Core schemas, types, defaults, and identity constants for the jeeves-watcher ecosystem.

    @karmaniverous/jeeves-watcher-core

    Shared Zod schemas, derived TypeScript types, defaults and constants for the jeeves-watcher ecosystem.

    This package is the single source of truth for the watcher's contracts. The service validates with these schemas, and the SDK and the OpenClaw plugin type against them, so clients cannot drift from the server.

    • Config: jeevesWatcherConfigSchema and its section schemas (watch, embedding, vector store, inference rules, API key, payload indexes, sources), plus defaults such as EMBEDDING_DEFAULTS and API_DEFAULTS.
    • API: request and response schemas for the HTTP endpoints (including the admin routes: points delete, rules register/unregister/reapply), the endpoint catalogue (WATCHER_ENDPOINTS, getEndpoint), the error body with its machine-readable code (API_ERROR_CODES) and the HTTP status each code is sent with (API_ERROR_STATUS).
    • HTTP client contract: shared by the SDK, the CLI and the plugin: the API key environment variable (API_KEY_ENV_VAR, JEEVES_WATCHER_API_KEY), bearer headers (bearerHeaders) and the mapping of a non-2xx response to { status, code, message, details } (httpError, formatHttpError).
    • Source documents: the <name>://<id> reference schema (sourceReferenceSchema) and the callback record contract (sourceDocumentSchema).
    • Payload: reserved system payload fields (RESERVED_PAYLOAD_FIELDS, isReservedPayloadField).

    ESM only, Node.js >= 22.13. Most applications should use the SDK rather than depend on this package directly.

    npm install @karmaniverous/jeeves-watcher-core
    

    API reference: docs.karmanivero.us/jeeves-watcher. Source and guides: github.com/karmaniverous/jeeves-watcher.

    BSD-3-Clause

    EndpointDescriptor
    HttpErrorInfo
    NormalizedWatchPath
    ApiConfig
    ApiErrorBody
    ApiErrorCode
    ApiErrorResponse
    ConfigWatchConfig
    ConfigWatchReindexScope
    DocumentError
    DocumentFailure
    DocumentFailureCode
    DocumentNotification
    DocumentRejection
    DocumentRejectionCode
    DocumentRejectionError
    DocumentResult
    DocumentResultStatus
    DocumentsAcceptedResponse
    DocumentsDeleteRequest
    DocumentsDeleteResponse
    DocumentsEnvelope
    DocumentsQuery
    DocumentsRequest
    DocumentsResultsResponse
    DocumentTarget
    EmbeddingConfig
    Endpoint
    EndpointName
    HttpMethod
    InferenceRule
    IssueRecord
    IssuesResponse
    IssueType
    JeevesWatcherConfig
    JeevesWatcherConfigInput
    LoggingConfig
    MetadataRequest
    MetadataResponse
    PayloadIndexConfig
    PayloadIndexType
    PointsDeleteRequest
    PrincipalIndexType
    QdrantFilter
    ReindexPlan
    ReindexRequest
    ReindexResponse
    ReindexScope
    RenderBodySection
    RenderConfig
    RenderRequest
    RenderResponse
    ReservedPayloadField
    RulesReapplyRequest
    RulesRegisterRequest
    RulesUnregisterRequest
    ScanPoint
    ScanRequest
    ScanResponse
    SchemaEntry
    SearchRequest
    SearchResponse
    SearchResult
    SourceConfig
    SourceDocument
    SourceReference
    SourcesConfig
    StatusResponse
    TenantIndexType
    VcsAuthorConfig
    VcsCommitMessageConfig
    VcsConfig
    VcsRetentionConfig
    VectorStoreConfig
    WatchConfig
    WatchPathEntry
    WatchPathVcsConfig
    API_DEFAULTS
    API_ERROR_CODES
    API_ERROR_STATUS
    API_KEY_ENV_VAR
    apiConfigSchema
    apiErrorBodySchema
    apiErrorCodeSchema
    apiErrorResponseSchema
    COMPONENT_NAME
    CONFIG_WATCH_DEFAULTS
    configWatchConfigSchema
    configWatchReindexScopeSchema
    CORE_PACKAGE
    DEFAULT_PORT
    documentErrorSchema
    documentFailureCodeSchema
    documentFailureSchema
    documentNotificationSchema
    documentRejectionCodeSchema
    documentRejectionErrorSchema
    documentRejectionSchema
    documentResultSchema
    documentResultStatusSchema
    documentsAcceptedResponseSchema
    documentsDeleteRequestSchema
    documentsDeleteResponseSchema
    documentsEnvelopeSchema
    documentsQuerySchema
    documentsRequestSchema
    documentsResultsResponseSchema
    EMBEDDING_DEFAULTS
    embeddingConfigSchema
    inferenceRuleSchema
    INIT_CONFIG_TEMPLATE
    ISSUE_TYPES
    issueRecordSchema
    issuesResponseSchema
    issueTypeSchema
    jeevesWatcherConfigSchema
    LOGGING_DEFAULTS
    loggingConfigSchema
    MAX_DELETE_SOURCES_PER_REQUEST
    MAX_DOCUMENTS_PER_REQUEST
    MAX_REINDEX_SOURCES_PER_REQUEST
    metadataRequestSchema
    metadataResponseSchema
    nonEmptyQdrantFilterSchema
    PAYLOAD_FIELD
    payloadIndexesSchema
    payloadIndexSchema
    payloadIndexTypeSchema
    PLUGIN_PACKAGE
    pointsDeleteRequestSchema
    qdrantFilterSchema
    REINDEX_DEFAULTS
    reindexPlanSchema
    reindexRequestSchema
    reindexResponseSchema
    reindexScopeSchema
    renderBodySectionSchema
    renderConfigSchema
    renderRequestSchema
    renderResponseSchema
    RESERVED_PAYLOAD_FIELDS
    ROOT_DEFAULTS
    rulesReapplyRequestSchema
    rulesRegisterRequestSchema
    rulesUnregisterRequestSchema
    SCAN_DEFAULT_LIMIT
    SCAN_MAX_LIMIT
    scanPointSchema
    scanRequestSchema
    scanResponseSchema
    schemaEntrySchema
    SEARCH_DEFAULT_LIMIT
    searchRequestSchema
    searchResponseSchema
    searchResultSchema
    SERVICE_PACKAGE
    SOURCE_DOCUMENT_GONE_STATUS
    SOURCE_ID_PLACEHOLDER
    SOURCE_NAME_PATTERN
    SOURCE_REFERENCE_PATTERN
    sourceConfigSchema
    sourceDocumentSchema
    sourceNameSchema
    sourceReferenceSchema
    sourcesConfigSchema
    statusResponseSchema
    SYSTEM_PAYLOAD_INDEX_FIELDS
    VCS_DEFAULTS
    vcsAuthorConfigSchema
    vcsCommitMessageConfigSchema
    vcsConfigSchema
    vcsRetentionConfigSchema
    vectorStoreConfigSchema
    WATCH_DEFAULTS
    watchConfigSchema
    WATCHER_ENDPOINTS
    watchPathEntrySchema
    watchPathVcsConfigSchema
    bearerHeaders
    documentTarget
    extractWatchPathStrings
    findReservedPropertyNames
    formatHttpError
    getEndpoint
    hasFilterCondition
    httpError
    isPlainObject
    isPrincipalIndexType
    isReservedPayloadField
    isTenantIndexType
    normalizeWatchPaths
    tryParseJson
    unauthorizedMessage