pi-think-anchor 1.0.20 → 1.0.22
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 +9 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,20 +88,19 @@ flowchart TD
|
|
|
88
88
|
|
|
89
89
|
## 原理(小白)
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
**像一个跑步教练**:看你说话的用词判断此刻是专注还是走神;一直走神就轻轻提醒一句,恢复专注就不打扰。
|
|
92
92
|
|
|
93
93
|
```mermaid
|
|
94
|
-
flowchart
|
|
94
|
+
flowchart TD
|
|
95
95
|
A[你说的话] --> B[教练看用词]
|
|
96
96
|
B --> C{清晰吗}
|
|
97
97
|
C -->|清晰| D[不打扰]
|
|
98
|
-
C -->|有点散| E[
|
|
98
|
+
C -->|有点散| E[轻提醒]
|
|
99
99
|
C -->|一直散| F[认真提醒]
|
|
100
100
|
E --> A
|
|
101
101
|
F --> A
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
|
|
105
104
|
## 借鉴
|
|
106
105
|
|
|
107
106
|
蒸馏自 DSH 插件 [`dsh-anchored-monitor`](https://dsh-plugin.org/zh/plugins/aik358/dsh-anchored-monitor) 0.3.1:机制思想来源,非代码移植(本实现为回合级,无独立进程)。
|
|
@@ -194,32 +193,22 @@ flowchart TD
|
|
|
194
193
|
E -->|react| H[state machine<br/>L1 / L2 nudge]
|
|
195
194
|
H -->|nextTurn message| A
|
|
196
195
|
|
|
196
|
+
```
|
|
197
|
+
|
|
197
198
|
## How it works (plain words)
|
|
198
199
|
|
|
199
|
-
Like a running coach
|
|
200
|
+
**Like a running coach**: reads your words to judge whether you are focused or drifting; a mild nudge when you drift, silence when you recover.
|
|
200
201
|
|
|
201
202
|
```mermaid
|
|
202
|
-
flowchart
|
|
203
|
-
A[what you say] --> B[coach reads
|
|
203
|
+
flowchart TD
|
|
204
|
+
A[what you say] --> B[coach reads wording]
|
|
204
205
|
B --> C{focused?}
|
|
205
206
|
C -->|yes| D[no interruption]
|
|
206
|
-
C -->|slightly off| E[
|
|
207
|
+
C -->|slightly off| E[gentle nudge]
|
|
207
208
|
C -->|drifting| F[stronger nudge]
|
|
208
209
|
E --> A
|
|
209
210
|
F --> A
|
|
210
211
|
```
|
|
211
|
-
flowchart TD
|
|
212
|
-
A[turn_end<br/>read assistant thinking] --> B[word fingerprint pos/neg/neu]
|
|
213
|
-
B --> C{hits >= minHits?}
|
|
214
|
-
C -->|no| Z[advance window only<br/>no score, no nudge]
|
|
215
|
-
C -->|yes| D[sliding window + alpha-smoothed ratio]
|
|
216
|
-
D --> E{band}
|
|
217
|
-
E -->|spec| F[healthy: silent]
|
|
218
|
-
E -->|mixed| G[watch]
|
|
219
|
-
E -->|react| H[state machine<br/>L1 / L2 nudge]
|
|
220
|
-
H -->|nextTurn message| A
|
|
221
|
-
```
|
|
222
|
-
|
|
223
212
|
## Credits
|
|
224
213
|
|
|
225
214
|
Distilled from the DSH plugin [`dsh-anchored-monitor`](https://dsh-plugin.org/zh/plugins/aik358/dsh-anchored-monitor) 0.3.1: the mechanism is upstream, the code is not (turn-level, no separate process).
|