pi-think-anchor 1.0.18 → 1.0.19

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 +40 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -9,6 +9,26 @@
9
9
 
10
10
  思维链锚定监测:读取 thinking 的词频指纹,判定专注 / 过渡 / 发散,发散时分级提示。
11
11
 
12
+ ## 快速事实
13
+
14
+ | 项 | 说明 |
15
+ | --- | --- |
16
+ | 配置文件 | ~/.pi/think-anchor.json(可省略) |
17
+ | 命令行 | /think-anchor [on|off|reset|stats] |
18
+ | 调用方式 | **全自动**:turn_end 评估 + 条件注入;命令可手动开关/重置 |
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
+
12
32
  ## 安装
13
33
 
14
34
  ```bash
@@ -80,6 +100,26 @@ MIT
80
100
 
81
101
  Chain-of-thought drift monitor: reads a word-frequency fingerprint from thinking, classifies focused / mixed / reactive, and nudges when drifting.
82
102
 
103
+ ## At a glance
104
+
105
+ | Item | Description |
106
+ | --- | --- |
107
+ | Config file | ~/.pi/think-anchor.json (optional) |
108
+ | Commands | /think-anchor [on|off|reset|stats] |
109
+ | Automation | **Fully automatic**: evaluated on turn_end, injects only when needed; commands toggle/reset |
110
+
111
+ Full config (all keys and defaults):
112
+
113
+ ```json
114
+ {
115
+ "enabled": true,
116
+ "score": { "minHits": 3, "spec": 1.2, "react": 0.5, "alpha": 1 },
117
+ "windowSize": 5,
118
+ "weights": { "beta": 0.4, "eps": 0.5 },
119
+ "intervention": { "l1CooldownMin": 10, "l2CooldownMin": 15, "maxL2": 2 }
120
+ }
121
+ ```
122
+
83
123
  ## Install
84
124
 
85
125
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-think-anchor",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Monitors thinking focus drift and nudges the model back on track.",
5
5
  "type": "module",
6
6
  "license": "MIT",