jeeves-watcher
    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), and the client's half of the error contract: every WATCHER_* code an error body can carry (WATCHER_ERROR_CODES, type WatcherErrorCode) and the HTTP status each is sent with (WATCHER_ERROR_STATUS). The error body itself is Fastify's standard { statusCode, code?, error, message } (errorBodySchema from @karmaniverous/jeeves/catalog), which the catalog's error responses use.
    • Endpoint catalog: WATCHER_CATALOG, built with defineCatalog from @karmaniverous/jeeves: one entry per route (29 entries, from status to excludeVcsPath), each with its verb-first name, method, path, description, auth, kind (read, write or destructive) and request and response schemas (including watcherHealthSchema). The entry name is the operation's one name: the SDK method, the OpenAPI operationId and, as watcher_ plus the name in snake_case, the plugin tool. The /vcs/* entries' descriptions end with VCS_DISABLED_NOTE, since a server without version control answers them with a 404. The catalog is the only route list: the service registers every route from it, and the SDK, the CLI and the plugin's tools are built from it.
    • OpenAPI: the catalog's OpenAPI 3.1 document, WATCHER_OPENAPI_DOCUMENT, also published as the @karmaniverous/jeeves-watcher-core/openapi.json file. It is committed, regenerated by npm run openapi (never by the build), and a test fails when it drifts from the catalog.
    • Agent content: WATCHER_PROMPT_RULES (the always-in-context rules the plugin injects) and WATCHER_SKILL (the plugin's SKILL.md, generated from skills/jeeves-watcher/SKILL.md by npm run skill, with a drift test).
    • Client key: the API key environment variable the CLI and the plugin read (API_KEY_ENV_VAR, JEEVES_WATCHER_API_KEY).
    • 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 >= 24.22.2. 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

    NormalizedWatchPath
    ApiConfig
    ByteSize
    ChangeSourceHealth
    ConfigWatchConfig
    ConfigWatchReindexScope
    CountFacetsRequest
    CountFacetsResponse
    DocumentError
    DocumentFailure
    DocumentFailureCode
    DocumentNotification
    DocumentRejection
    DocumentRejectionCode
    DocumentRejectionError
    DocumentResult
    DocumentResultStatus
    DocumentsAcceptedResponse
    DocumentsDeleteRequest
    DocumentsDeleteResponse
    DocumentsEnvelope
    DocumentsQuery
    DocumentsRequest
    DocumentsResultsResponse
    DocumentTarget
    EmbeddingConfig
    EmbeddingHealth
    EnumeratedUiHint
    FacetRange
    FacetValueCount
    GetConfigSchemaResponse
    IndexCheckHealth
    IndexCheckState
    InferenceRule
    InitialScanStatus
    IssueRecord
    IssuesResponse
    IssueType
    JeevesWatcherConfig
    JeevesWatcherConfigInput
    ListFacetsQuery
    ListFacetsResponse
    LoggingConfig
    LogRotationConfig
    MatchConfigRequest
    MatchConfigResponse
    MetadataRequest
    MetadataResponse
    PayloadIndexConfig
    PayloadIndexType
    PointsDeleteRequest
    PointsDeleteResponse
    PrincipalIndexType
    ProcessingConfig
    QdrantFilter
    RebuildMetadataRequest
    RebuildMetadataResponse
    ReindexPlan
    ReindexRequest
    ReindexResponse
    ReindexScope
    ReindexStatus
    RenderBodySection
    RenderConfig
    RenderRequest
    RenderResponse
    ReservedPayloadField
    RestartCause
    RulesReapplyRequest
    RulesReapplyResponse
    RulesRegisterRequest
    RulesRegisterResponse
    RulesUnregisterParams
    RulesUnregisterRequest
    RulesUnregisterResponse
    ScanPoint
    ScanRequest
    ScanResponse
    SchemaEntry
    SearchRequest
    SearchResponse
    SearchResult
    SourceConfig
    SourceDocument
    SourceReference
    SourcesConfig
    StatusResponse
    SystemIndexes
    TenantIndexType
    UiHint
    ValidateConfigRequest
    ValidateConfigResponse
    VcsAuthorConfig
    VcsCheckExclusionQuery
    VcsCheckExclusionResponse
    VcsCommitMessageConfig
    VcsConfig
    VcsDiffQuery
    VcsExcludeRequest
    VcsExcludeResponse
    VcsHealth
    VcsHistoryQuery
    VcsHistoryResponse
    VcsRetentionConfig
    VcsRevertRequest
    VcsRevertResponse
    VcsShowQuery
    VcsStatusResponse
    VectorStoreConfig
    WalkRequest
    WalkResponse
    WatchConfig
    WatcherCatalog
    WatcherErrorCode
    WatcherHealth
    WatchPathEntry
    WatchPathVcsConfig
    API_DEFAULTS
    API_KEY_ENV_VAR
    apiConfigSchema
    byteSizeSchema
    changeSourceHealthSchema
    COMPONENT_NAME
    CONFIG_WATCH_DEFAULTS
    configWatchConfigSchema
    configWatchReindexScopeSchema
    CORE_PACKAGE
    COUNT_FACETS_DEFAULT_LIMIT
    COUNT_FACETS_MAX_FIELDS
    COUNT_FACETS_MAX_LIMIT
    countFacetsRequestSchema
    countFacetsResponseSchema
    DEFAULT_ENUM_UI_HINT
    DEFAULT_PORT
    documentErrorSchema
    documentFailureCodeSchema
    documentFailureSchema
    documentNotificationSchema
    documentRejectionCodeSchema
    documentRejectionErrorSchema
    documentRejectionSchema
    documentResultSchema
    documentResultStatusSchema
    documentsAcceptedResponseSchema
    documentsDeleteRequestSchema
    documentsDeleteResponseSchema
    documentsEnvelopeSchema
    documentsQuerySchema
    documentsRequestSchema
    documentsResultsResponseSchema
    EMBEDDING_DEFAULTS
    embeddingConfigSchema
    embeddingHealthSchema
    ENUMERATED_UI_HINTS
    facetRangeSchema
    facetValueCountSchema
    getConfigSchemaResponseSchema
    indexCheckHealthSchema
    indexCheckStateSchema
    inferenceRuleSchema
    INIT_CONFIG_TEMPLATE
    initialScanStatusSchema
    ISSUE_TYPES
    issueRecordSchema
    issuesResponseSchema
    issueTypeSchema
    jeevesWatcherConfigSchema
    listFacetsQuerySchema
    listFacetsResponseSchema
    LOGGING_DEFAULTS
    LOGGING_ROTATION_DEFAULTS
    loggingConfigSchema
    logRotationConfigSchema
    matchConfigRequestSchema
    matchConfigResponseSchema
    MAX_DELETE_SOURCES_PER_REQUEST
    MAX_DOCUMENTS_PER_REQUEST
    MAX_REINDEX_SOURCES_PER_REQUEST
    metadataRequestSchema
    metadataResponseSchema
    nonEmptyQdrantFilterSchema
    OTHER_UI_HINTS
    PAYLOAD_FIELD
    payloadIndexesSchema
    payloadIndexSchema
    payloadIndexTypeSchema
    PLUGIN_PACKAGE
    pointsDeleteRequestSchema
    pointsDeleteResponseSchema
    PROCESSING_DEFAULTS
    processingConfigSchema
    qdrantFilterSchema
    RANGE_UI_HINTS
    rebuildMetadataRequestSchema
    rebuildMetadataResponseSchema
    REINDEX_DEFAULTS
    reindexPlanSchema
    reindexRequestSchema
    reindexResponseSchema
    reindexScopeSchema
    reindexStatusSchema
    renderBodySectionSchema
    renderConfigSchema
    renderRequestSchema
    renderResponseSchema
    RESERVED_PAYLOAD_FIELDS
    restartCauseSchema
    ROOT_DEFAULTS
    rulesReapplyRequestSchema
    rulesReapplyResponseSchema
    rulesRegisterRequestSchema
    rulesRegisterResponseSchema
    rulesUnregisterParamsSchema
    rulesUnregisterRequestSchema
    rulesUnregisterResponseSchema
    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
    systemIndexesSchema
    systemIndexStateSchema
    UI_HINTS
    validateConfigRequestSchema
    validateConfigResponseSchema
    VCS_DEFAULTS
    VCS_DISABLED_NOTE
    VCS_EXCLUDE_CONFIRM_THRESHOLD
    vcsAuthorConfigSchema
    vcsCheckExclusionQuerySchema
    vcsCheckExclusionResponseSchema
    vcsCommitMessageConfigSchema
    vcsConfigSchema
    vcsDiffQuerySchema
    vcsDiffResponseSchema
    vcsExcludeRequestSchema
    vcsExcludeResponseSchema
    vcsHealthSchema
    vcsHistoryQuerySchema
    vcsHistoryResponseSchema
    vcsRetentionConfigSchema
    vcsRevertRequestSchema
    vcsRevertResponseSchema
    vcsShowQuerySchema
    vcsStatusResponseSchema
    vectorStoreConfigSchema
    walkRequestSchema
    walkResponseSchema
    WATCH_DEFAULTS
    watchConfigSchema
    WATCHER_CATALOG
    WATCHER_ERROR_CODES
    WATCHER_ERROR_STATUS
    WATCHER_OPENAPI_DOCUMENT
    WATCHER_PROMPT_RULES
    WATCHER_SKILL
    watcherHealthSchema
    watchPathEntrySchema
    watchPathVcsConfigSchema
    documentTarget
    extractWatchPathStrings
    findReservedPropertyNames
    hasFilterCondition
    isEnumeratedUiHint
    isPlainObject
    isPrincipalIndexType
    isRangeUiHint
    isReservedPayloadField
    isTenantIndexType
    isUiHint
    normalizeWatchPaths
    parseByteSize