openclaw-topic-shift-reset 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +25 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -13,7 +13,6 @@ Most users should only set these fields:
13
13
  "openclaw-topic-shift-reset": {
14
14
  "enabled": true,
15
15
  "config": {
16
- "enabled": true,
17
16
  "preset": "balanced",
18
17
  "embeddings": "auto",
19
18
  "handoff": "summary",
@@ -61,15 +60,37 @@ Default preset internals:
61
60
  - `ollama`
62
61
  - `none` (lexical only)
63
62
 
64
- ## Install locally
63
+ ## Install
65
64
 
66
65
  ```bash
67
- openclaw plugins install --link ~/Projects/openclaw-topic-shift-reset
66
+ openclaw plugins install openclaw-topic-shift-reset
68
67
  openclaw plugins enable openclaw-topic-shift-reset
69
68
  openclaw plugins info openclaw-topic-shift-reset
70
69
  ```
71
70
 
72
- Restart gateway after install/config changes.
71
+ Add this plugin entry in `~/.openclaw/openclaw.json` (or merge into your existing config):
72
+
73
+ ```json
74
+ {
75
+ "plugins": {
76
+ "allow": ["openclaw-topic-shift-reset"],
77
+ "entries": {
78
+ "openclaw-topic-shift-reset": {
79
+ "enabled": true,
80
+ "config": {
81
+ "preset": "balanced",
82
+ "embeddings": "auto",
83
+ "handoff": "summary",
84
+ "dryRun": false,
85
+ "debug": false
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ ```
92
+
93
+ Restart gateway after install/config changes. After restart, `openclaw plugins info openclaw-topic-shift-reset` should show `Status: loaded`.
73
94
 
74
95
  ## Logs
75
96
 
@@ -104,14 +125,6 @@ This skips classification for very short/low-information messages (for example `
104
125
 
105
126
  No build step is required. OpenClaw loads `src/index.ts` via jiti.
106
127
 
107
- ## Publish
108
-
109
- ```bash
110
- cd ~/Projects/openclaw-topic-shift-reset
111
- npm publish
112
- npm view openclaw-topic-shift-reset version --userconfig "$(mktemp)"
113
- ```
114
-
115
128
  ## Known tradeoff (plugin-only)
116
129
 
117
130
  This plugin improves timing with fast path + fallback, but cannot guarantee 100% that the triggering message becomes the first persisted message of the new session without core pre-session hooks.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-topic-shift-reset",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "OpenClaw plugin that detects topic shifts and starts a fresh session automatically.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",