pi-think-anchor 1.0.26 → 1.0.27

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 +0 -24
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -17,18 +17,6 @@
17
17
  | 命令行 | /think-anchor [on|off|reset|stats] |
18
18
  | 调用方式 | **全自动**:turn_end 评估 + 条件注入。on/off 只改当前会话内存(不写文件),重启后回到配置文件的值 |
19
19
 
20
- 完整配置(全部键与默认值):
21
-
22
- ```json
23
- {
24
- "enabled": true,
25
- "score": { "minHits": 3, "spec": 1.2, "react": 0.5, "alpha": 1 },
26
- "windowSize": 5,
27
- "weights": { "beta": 0.4, "eps": 0.5 },
28
- "intervention": { "l1CooldownMin": 10, "l2CooldownMin": 15, "maxL2": 2 }
29
- }
30
- ```
31
-
32
20
  ## 安装
33
21
 
34
22
  ```bash
@@ -53,7 +41,6 @@ pi install npm:pi-think-anchor
53
41
  | `intervention.l2CooldownMin` | `15` | L2 冷却(分钟) |
54
42
  | `intervention.maxL2` | `2` | 每会话 L2 上限 |
55
43
  | `lexicon.positive/negative/neutral` | 专注 28 词 / 发散 18 词 / 中性 **默认空** | 词表覆盖 |
56
- | `bands.spec/react` | `1.2 / 0.5` | 旧版兼容(无 `score` 时生效) |
57
44
 
58
45
  其他:日志 `~/.pi/think-anchor.jsonl`(1 MiB 截断,保留尾部整行)。
59
46
  **词表覆盖规则(源码事实)**
@@ -212,16 +199,6 @@ Chain-of-thought drift monitor: reads a word-frequency fingerprint from thinking
212
199
 
213
200
  Full config (all keys and defaults):
214
201
 
215
- ```json
216
- {
217
- "enabled": true,
218
- "score": { "minHits": 3, "spec": 1.2, "react": 0.5, "alpha": 1 },
219
- "windowSize": 5,
220
- "weights": { "beta": 0.4, "eps": 0.5 },
221
- "intervention": { "l1CooldownMin": 10, "l2CooldownMin": 15, "maxL2": 2 }
222
- }
223
- ```
224
-
225
202
  ## Install
226
203
 
227
204
  ```bash
@@ -246,7 +223,6 @@ Config file `~/.pi/think-anchor.json` (optional; defaults apply, invalid JSON fa
246
223
  | `intervention.l2CooldownMin` | `15` | L2 cooldown (minutes) |
247
224
  | `intervention.maxL2` | `2` | Max L2 per session |
248
225
  | `lexicon.positive/negative/neutral` | 28 focus / 18 drift / neutral **empty by default** | Lexicon override |
249
- | `bands.spec/react` | `1.2 / 0.5` | Legacy keys (used when `score` is absent) |
250
226
 
251
227
  Also: log `~/.pi/think-anchor.jsonl` (1 MiB truncation, tail-preserving).
252
228
  **Lexicon override rules (from source)**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-think-anchor",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Monitors thinking focus drift and nudges the model back on track.",
5
5
  "type": "module",
6
6
  "license": "MIT",