[0-22] feat!: adopt Fastify's standard error body with WATCHER_* codes (#312)
Every watcher error is a jeeves defineError class answered by jeeves 0.11's catalog error handler: { statusCode, code, error, message }, fixed messages, no details. Unexpected failures are masked 500s. POST /vcs/exclude over the threshold without confirm is now 200 { confirmRequired, untracked }; prune without a vector store is 503. watcher-core drops API_ERROR_* for WATCHER_ERROR_CODES/STATUS; SDK WatcherError carries the body's code and message. Wire overlay wire-errors-0.22.0.json pins every error reply.
BREAKING CHANGE: error codes and bodies change; see guides/upgrading.md#0220.
Fixes #312
[0-22] fix: address review of the 0.22.0 error contract (#312, #305, #306)
StabilityTicker measures a size changed during a stall from after the stat; a moved file with no points drops its issue and hash entry in one place; the plugin's exclude tool explains confirmRequired; tests pin every class message, a handler-result Retry-After, an empty JSON body, the render log without the error text, and every code-table outcome.
[281] test: capture 0.20.0 wire and 0.17.0 plugin-surface baselines for the catalog slice (#281)
Wire scenarios for every slice route and outcome (status, config, config apply, render, search, scan, vcs/show) replayed through the real server against a recorded fixture, and the plugin's 18 tool definitions and prompt rules recorded from untouched code. Later steps list each accepted change explicitly.
[281] chore(deps): pin @karmaniverous/jeeves 0.8.0-1 and add catalog plumbing (#281)
Exact 0.8.0-1 pin in core, service and plugin; fastify-type-provider-zod for the service's catalog routes; zod-openapi and openapi-types for core's OpenAPI writer. Rollup externals match jeeves and dependency sub-paths by prefix so no second copy of core is bundled. The plugin pin test accepts a prerelease. Core's generated status tool schema now closes additionalProperties (accepted baseline change).
[281] feat: prompt rules and skill live in watcher-core (#281)
WATCHER_PROMPT_RULES (moved verbatim from the plugin) and WATCHER_SKILL (compiled from packages/core/skills/jeeves-watcher/SKILL.md by npm run skill, with a drift test) are exported from watcher-core and set on both descriptors. The plugin injects the descriptor's promptRules and its build writes the skill to dist/skills/jeeves-watcher, the folder its manifest lists. The injected rules stay byte-identical to 0.17.0.
[281] chore(deps): re-pin @karmaniverous/jeeves to 0.8.0-4 (#281)
G1/G2 already present at this pin (route logger option, Zod params on validation issues); this is the step 5 core loop-back re-pin.
0.8.0-5 adds #151 (runnable argument parser additions); nothing the watcher uses changes. One copy of jeeves and of zod; all gates pass.
[281] feat: build the catalog plugin tools with core's toolset (#281)
watcher_status, watcher_config and watcher_config_apply, plus watcher_search, watcher_scan and watcher_vcs_show, now come from createPluginToolset with WATCHER_CATALOG, the tools selection and a bearer credential resolved per call (catalogTools.ts). The plugin's own config tools are deleted, and so is its local catalogMode plumbing (core's ToolDescriptor carries it). Tool names, descriptions, catalogMode, optional registration and the 0.17.0 registration order are unchanged. Parameters are generated from the request schemas; toolBaseline.test lists every delta: closed objects, open records for filter and config, the bounds the server already enforced (search limit/offset/query, scan limit 1-1000, vcs_show non-empty path and commit), scan cursor as string or number, and replace on config_apply. Catalog-built tools report errors as core's HTTP : (D31); the plugin-built tools keep their key guidance. watcher_vcs_show now returns file text. New distSmoke.test registers the built dist (bundled watcher-core and Zod): 18 tools in order, search/scan direct-only, bearer sent; it must find dist in CI. Mutations checked: dropping auth fails auth.test; dropping direct-only on search fails the baseline and watcherTools tests.
[281] docs: document the catalog slice (#281)
API reference: which routes are in WATCHER_CATALOG, the catalog's 400 details shape ({ slot, path, code, message, params }), response validation and its 500, the new GET /openapi.json (open, like /status), /config/apply's catalog schema with the deprecated config alias and the replace check, the /vcs/show 400 change, and the 401 wording of catalog-built tools. Root README: /openapi.json row, alias deprecated, plugin on jeeves 0.8 with catalog-built tools. watcher-core README: catalog, OpenAPI and agent-content exports. Plugin README and guide: which tools core builds from the catalog, the two error formats, generated parameter bounds, replace on config_apply, vcs_show returning text. Skill: tool errors, API key, and a troubleshooting entry for a catalog tool's 401 and the response-validation 500 (D31); WATCHER_SKILL regenerated. npm run docs has zero warnings.
[281] chore: update dependencies (patch and minor) (#281)
npm-check-updates --peer --target minor in the root and all four packages, then npm audit fix (non-breaking): audit 17 -> 14. One zod (4.6.7). All gates pass. Left for the owner (major): chokidar 6, unpdf 2, typescript 7 (blocked by typescript-eslint's peer range), mdast-util-from-adf 2.2 and release-it 19 (the remaining audit highs).
[281] test: assert status sends no key (#281)
Independent review finding 7. The spec's 'status sends none' was never asserted. catalogRoutes.test now records the Authorization header of each request a keyed catalog client makes: none for status, the bearer for config. auth.test checks watcher_status sends no header even with a key configured.
[281] docs: review fixes for auth exemptions, error formats and key order (#281)
Independent review findings 9 and 10. The API reference summary and the skill now say GET /openapi.json needs no key, and the skill's endpoint table lists it. The error-format line covers the catalog-built tools' HTTP : . Catalog error bodies list error before code, so the config-apply 400 examples in the skill and the plugin guide now match the real text. WATCHER_SKILL regenerated.
[281] chore: point service and plugin at watcher-core 0.5.0-0 (#281)
The service imports WATCHER_CATALOG from watcher-core at run time, and ^0.4.0 resolved to the registry 0.4.0 published before the slice, so a packed service failed to load. Service and plugin now take ^0.5.0-0 (the owner's prerelease from this branch); in the workspace both link to packages/core. The SDK keeps ^0.4.0 (unchanged in the slice, D30). All gates pass.
[281] chore: pin jeeves 0.8.0-6; drop fastify-type-provider-zod, zod-openapi, openapi-types
jeeves 0.8.0-6 makes fastify, fastify-type-provider-zod and zod-openapi its own dependencies (jeeves Decision 88), so the service and core no longer supply them.
[281] chore: pin jeeves 0.8.0
[281] chore: patch/minor deps, prettier-ignore generated baselines, squash test timeout
[281] refactor: one registerCatalogTool for the plugin's catalog-built tools (#281)
Independent review (5721988106): index.ts and watcherTools.ts each looked a catalog-built tool up, threw when it was missing and registered it as optional. registerCatalogTool in catalogTools.ts owns that now, with a test of its throw arm (uncovered before in both places).
[281] docs: review fixes for the skill, API reference and plugin README (#281)
SKILL.md: watcher_scan cursor is a string or a number (D34); WATCHER_SKILL regenerated. API reference: the /vcs/show 400 error text. Plugin README: one list. registerCatalog TSDoc: one preValidation hook, HEAD included. vcsShowHandler: say why its VCS-off guard stays.
[281] test: watcher_reindex forwards path and dryRun only when set (#281)
Finishing pass: the dryRun arm of the touched watcherTools.ts was uncovered (87.5% branches); now 100%.
[281] test,docs: second-review nits on the fix commits (#281)
Fresh review of faf2fe9..e0cfae6: test names now say what they prove (hashObject, InitialScanTracker without start); errorResult keys compared in any order (M3 still KILLED); skill scan response cursor is a string, number or null (WATCHER_SKILL regenerated); catalogTools module TSDoc lists the four standard tools and registerCatalogTool.
Release guard for dependents' core range (#277)
Pin @karmaniverous/jeeves 0.9.0-0 (D42)
Patch and minor dependency updates
Require Node >=24.22.2 (D188)
Updated core
Merge remote-tracking branch 'origin/main' into feature/p9-processing-at-scale
[234] [247] feat(openclaw): make watcher_search and watcher_scan direct tools under OpenClaw Tool Search
Register watcher_search and watcher_scan with catalogMode 'direct-only' so OpenClaw 2026.9 Tool Search keeps them model-visible instead of hiding them in the tool_search catalog. guardTool is now generic and preserves descriptor properties. Decompose watcherTools (432 lines) into apiTool/vcsTools modules to honor the 300-line limit.
[234] fix: tests and typecheck read watcher-core from source, not dist
Service and openclaw vitest configs alias @karmaniverous/jeeves-watcher-core
to packages/core/src, and their tsconfigs map it via paths, so typecheck
and tests pass on a clean checkout with no dist/. Rollup builds override
paths ({}) so bundling and typing still use the built core package with
no TS warnings. Root npm test now also runs the openclaw package tests.
Closes #242
[234] chore: update root package-lock in release-it after:bump hooks
[234] feat(openclaw)!: standard OpenClaw plugin on jeeves core 0.6.0 with lazy configRoot
move @karmaniverous/jeeves to 0.6.0-3 (static-content core, jeeves#109)
remove ComponentWriter, createAsyncContentCache TOOLS.md menu, and the
createPluginCli install/uninstall CLI (bin, rollup CLI entry, content copy)
inject watcher escalation/scan-first/search-first rules via
before_prompt_build (registerPromptContext); declare it in
package.json jeeves.conversationHooks
resolve configRoot lazily (pluginConfig -> plugins.entries -> JEEVES_CONFIG_ROOT);
registration always succeeds, warns once when unset, defers core init()
to first tool use; tools return a clear error until it is set
remove the j:/config default (constants, helpers, manifest); declare
configRoot in the manifest configSchema with no default
BREAKING CHANGE: the npx install/uninstall CLI is gone (use jeeves install or
openclaw plugins install); configRoot has no default and must be set in plugin
config or JEEVES_CONFIG_ROOT; the plugin no longer writes TOOLS.md.
Closes #234
Closes #235
Closes #227
[234] chore(deps): ncu --peer across all packages (keep @karmaniverous/jeeves pinned)
[234] chore: knip and prettier clean-up
knip 6.38: remove unused barrel re-exports and a stale backward-compat re-export (no public API change)
prettier 3.9 formatting; add .prettierignore for generated CHANGELOGs, config.schema.json and .stan state
[234] fix(openclaw): gate only tools that read configRoot
Uniform Jeeves rule: only tools whose implementation reads configRoot return the configRoot-not-configured error. watcher_service (install resolves the config path via core getComponentConfigDir) stays gated; the 17 HTTP-only tools (3 core factory tools on defaultPort, 14 domain tools on apiUrl) are registered unwrapped and work without configRoot.
[234] feat(openclaw): pass lazy apiUrl to createPluginToolset; pin core 0.6.0-4
[234] fix(openclaw): gate watcher_service install only
[234] chore(build): zero build and typedoc warnings
service: drop tsconfig incremental (made the rollup configPlugin warn
about outputToFilesystem); mark node: builtins external in the d.ts build.
openclaw: drop only bundled-zod INVALID_ANNOTATION / node_modules-only
CIRCULAR_DEPENDENCY rollup warnings.
[204] fix(openclaw): externalize @karmaniverous/jeeves in rollup config
Moves @karmaniverous/jeeves from bundled to external in both plugin and
CLI rollup builds. The plugin installer copies the jeeves core lib into
the extensions directory, so it is always resolvable at runtime.
Service package already externalizes via dynamic dependency list.
[CORE-046] feat: integrate core 0.4.6 โ init() called before descriptor.run()
Bumps @karmaniverous/jeeves to 0.4.6 which fixes karmaniverous/jeeves#53:
createServiceCli now calls init() before descriptor.run() in the start
command, so getBindAddress() and other core functions that require
initialization work correctly.
This unblocks upgrading prod from 0.15.2 to the current release.
Update writerIntegration test for core managed-content position change
[PHASE-2] [PHASE-4] feat: plugin refactor โ core CLI factory, simplified menu, new status shape
O2: Remove ACTION REQUIRED blocks from generateWatcherMenu
Core ComponentWriter handles unreachable state independently
Function now throws on failure (createAsyncContentCache retains last good value)
O3: Replace hand-rolled plugin CLI with createPluginCli factory
O4: Update status parsing for core StatusResponse convention
Read health.collection.pointCount instead of collection.pointCount
Add blast area 'plan' object to all reindex responses (counts by root)
Add dryRun parameter: returns plan without executing
Thread vectorStore into ExecuteReindexDeps for prune access
Refactor processAllFiles to accept pre-computed file list
Guard configWatch auto-trigger against prune scope
Add CONFIG_WATCH_VALID_SCOPES constant
Update plugin tool: prune in scope enum, dryRun parameter
Tests: dryRun per scope (issues/full/rules/prune), prune execution
Closes Phase 6 of spec dev plan.
[FIX-14] docs: update all guides for reindex scopes, dryRun, plan, and version
api-reference.md: /config-reindex now documents all 5 scopes, dryRun,
plan response shape; /status includes version field; error response
includes error+message fields
cli-reference.md: config-reindex documents all scopes, --path, --dry-run
configuration.md: configWatch.reindex includes rules scope, notes
path/prune exclusion
[FIX-17][FIX-18][FIX-19] feat: API Consolidation (Phase 8)
Convert POST /config/query to GET /config with unified inference rules
Rename watcher_query to watcher_config tool
Rename POST /config-reindex to POST /reindex with array path support
Update CLI, plugin, and tests to match
[FIX-17] [FIX-20][FIX-21] Phase 9: POST /walk endpoint, watcher_walk tool, auto rules-reindex on rule registration
Fix 20:
New POST /walk handler: accepts { globs: string[] }, walks watch roots with
glob intersection, returns { paths, matchedCount, scannedRoots }
Route registered in api/index.ts
New watcher_walk OpenClaw tool in watcherTools.ts
Tests: walk handler (4 tests), plugin tool registration + execution
Fix 21:
onRulesChanged now extracts match globs from virtual rules
(match.properties.file.properties.path.glob) and fires executeReindex
with scope 'rules' and extracted globs array (fire-and-forget)
Skips reindex when no rules have match globs
Tests: 3 integration tests via Fastify inject
Docs:
SKILL.md: added watcher_walk docs, updated API reference table
(POST /walk, renamed endpoints from Phase 8), renamed watcher_query
references to watcher_config, noted auto-reindex on rule registration
Quality gates: 492 service tests, 28 plugin tests, zero lint/typecheck/knip errors.
[FIX-17] [FIX-19] fix: rename CLI config-reindex to reindex, fix stale doc refs, clean watch.ignored
[FIX-17] [DOCS] Resolve all docs warnings and root-level knip issues
[FIX-17] chore: remove changelogs (generated at build time)
[FIX-17] docs: update READMEs with renamed endpoints, tools, and new /walk endpoint