@karmaniverous/jeeves-watcher-openclaw 0.14.11 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/cli.js +316 -21654
- package/dist/index.js +349 -22923
- package/dist/rollup.config.d.ts +3 -3
- package/dist/skills/jeeves-watcher/SKILL.md +64 -0
- package/dist/src/watcherTools.d.ts +2 -2
- package/openclaw.plugin.json +9 -2
- package/package.json +3 -3
package/dist/rollup.config.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Rollup configuration for the OpenClaw plugin package.
|
|
3
3
|
* Two entry points: plugin (ESM + declarations) and CLI (ESM executable).
|
|
4
4
|
*
|
|
5
|
-
* `@karmaniverous/jeeves` is
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* `@karmaniverous/jeeves` is externalized — the plugin installer copies
|
|
6
|
+
* the jeeves core lib into the extensions directory alongside the plugin
|
|
7
|
+
* output, so it is always resolvable at runtime.
|
|
8
8
|
*
|
|
9
9
|
* @module rollup.config
|
|
10
10
|
*/
|
|
@@ -837,6 +837,70 @@ Use `watcher_enrich` to tag documents after analysis (e.g., `reviewed: true`, pr
|
|
|
837
837
|
|
|
838
838
|
---
|
|
839
839
|
|
|
840
|
+
## Version Tracking
|
|
841
|
+
|
|
842
|
+
The watcher includes built-in history and undo for your watched files. When enabled, every change to a watched file is automatically versioned. You can view the history of any file or folder, see exactly what changed between versions, retrieve old versions, and undo changes — all through the `watcher_vcs_*` tools.
|
|
843
|
+
|
|
844
|
+
### Tools
|
|
845
|
+
|
|
846
|
+
| Tool | Purpose |
|
|
847
|
+
|------|---------|
|
|
848
|
+
| `watcher_vcs_status` | Check version tracking health: enabled state, tracked roots, remote sync status |
|
|
849
|
+
| `watcher_vcs_history` | View change history for a file or folder, with optional date range and limit |
|
|
850
|
+
| `watcher_vcs_show` | Retrieve the content of a file at a specific past version |
|
|
851
|
+
| `watcher_vcs_diff` | Show what changed between two versions, or between a past version and now |
|
|
852
|
+
| `watcher_vcs_revert` | Undo changes by restoring files to a specific past version |
|
|
853
|
+
| `watcher_vcs_exclude` | Exclude (or re-include) paths from version tracking |
|
|
854
|
+
| `watcher_vcs_check` | Check whether a path is excluded from version tracking and why |
|
|
855
|
+
|
|
856
|
+
### Usage Patterns
|
|
857
|
+
|
|
858
|
+
**View recent changes to a file:**
|
|
859
|
+
```
|
|
860
|
+
watcher_vcs_history: glob="J:/domains/jira/PROJ-123.json", limit=10
|
|
861
|
+
```
|
|
862
|
+
|
|
863
|
+
**See what changed between two versions:**
|
|
864
|
+
```
|
|
865
|
+
watcher_vcs_diff: glob="J:/domains/jira/PROJ-123.json", commit="abc1234"
|
|
866
|
+
```
|
|
867
|
+
|
|
868
|
+
**Restore a file to a previous version:**
|
|
869
|
+
```
|
|
870
|
+
watcher_vcs_revert: glob="J:/domains/jira/PROJ-123.json", commit="abc1234"
|
|
871
|
+
```
|
|
872
|
+
|
|
873
|
+
**View old content without restoring:**
|
|
874
|
+
```
|
|
875
|
+
watcher_vcs_show: path="J:/domains/jira/PROJ-123.json", commit="abc1234"
|
|
876
|
+
```
|
|
877
|
+
|
|
878
|
+
**Exclude files that don't need versioning** (e.g., Jira issues that are read-only syncs):
|
|
879
|
+
```
|
|
880
|
+
watcher_vcs_exclude: glob="J:/domains/jira/**/*.json"
|
|
881
|
+
```
|
|
882
|
+
|
|
883
|
+
**Check if a file is excluded and why:**
|
|
884
|
+
```
|
|
885
|
+
watcher_vcs_check: path="J:/domains/jira/PROJ-123.json"
|
|
886
|
+
```
|
|
887
|
+
|
|
888
|
+
### Enabling Version Tracking
|
|
889
|
+
|
|
890
|
+
Version tracking is controlled by the `vcs.enabled` config setting. When set to `true`, the watcher automatically versions all watched files. No additional setup is required — just enable it and history starts accumulating.
|
|
891
|
+
|
|
892
|
+
### Excluding Paths
|
|
893
|
+
|
|
894
|
+
Not all watched files need version history. For example, if Jira issues are synced read-only, there's nothing to "undo." Use `watcher_vcs_exclude` to stop tracking specific paths.
|
|
895
|
+
|
|
896
|
+
Exclusions are placed as close to the target as possible: if you exclude `J:/domains/jira/**/*.json`, the exclusion rule is written inside the `J:/domains/jira/` directory, not at the root. This keeps exclusions local and easy to reason about. Re-include a path by calling `watcher_vcs_exclude` with `remove: true`.
|
|
897
|
+
|
|
898
|
+
### Score Interpretation
|
|
899
|
+
|
|
900
|
+
VCS tools do not use vector search. There are no relevance scores to interpret — results are exact history lookups, diffs, and file retrievals.
|
|
901
|
+
|
|
902
|
+
---
|
|
903
|
+
|
|
840
904
|
## Error Handling
|
|
841
905
|
|
|
842
906
|
If the watcher is unreachable:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module plugin/watcherTools
|
|
3
|
-
* Domain-specific watcher tool registrations (
|
|
3
|
+
* Domain-specific watcher tool registrations (14 tools) for the OpenClaw plugin.
|
|
4
4
|
*/
|
|
5
5
|
import { type PluginApi } from '@karmaniverous/jeeves';
|
|
6
|
-
/** Register the
|
|
6
|
+
/** Register the 14 domain-specific watcher_* tools with the OpenClaw plugin API. */
|
|
7
7
|
export declare function registerWatcherTools(api: PluginApi, baseUrl: string): void;
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "jeeves-watcher-openclaw",
|
|
3
3
|
"name": "Jeeves Watcher",
|
|
4
4
|
"description": "Semantic search, metadata enrichment, and instance administration for a jeeves-watcher deployment.",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.15.1",
|
|
6
6
|
"skills": [
|
|
7
7
|
"dist/skills/jeeves-watcher"
|
|
8
8
|
],
|
|
@@ -34,7 +34,14 @@
|
|
|
34
34
|
"watcher_reindex",
|
|
35
35
|
"watcher_scan",
|
|
36
36
|
"watcher_issues",
|
|
37
|
-
"watcher_walk"
|
|
37
|
+
"watcher_walk",
|
|
38
|
+
"watcher_vcs_status",
|
|
39
|
+
"watcher_vcs_history",
|
|
40
|
+
"watcher_vcs_show",
|
|
41
|
+
"watcher_vcs_diff",
|
|
42
|
+
"watcher_vcs_revert",
|
|
43
|
+
"watcher_vcs_exclude",
|
|
44
|
+
"watcher_vcs_check"
|
|
38
45
|
]
|
|
39
46
|
},
|
|
40
47
|
"uiHints": {
|
package/package.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"url": "https://github.com/karmaniverous/jeeves-watcher/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@karmaniverous/jeeves": "^0.5.
|
|
11
|
-
"@karmaniverous/jeeves-watcher-core": "^0.1
|
|
10
|
+
"@karmaniverous/jeeves": "^0.5.12",
|
|
11
|
+
"@karmaniverous/jeeves-watcher-core": "^0.2.1"
|
|
12
12
|
},
|
|
13
13
|
"description": "OpenClaw plugin for jeeves-watcher — semantic search and metadata enrichment tools",
|
|
14
14
|
"devDependencies": {
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
},
|
|
113
113
|
"type": "module",
|
|
114
114
|
"types": "dist/index.d.ts",
|
|
115
|
-
"version": "0.
|
|
115
|
+
"version": "0.15.1"
|
|
116
116
|
}
|