pi-patch-keeper 1.3.4 → 1.3.5
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 +36 -32
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,28 +69,30 @@ pi install npm:pi-patch-keeper
|
|
|
69
69
|
|
|
70
70
|
## 原理(专业)
|
|
71
71
|
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
```text
|
|
73
|
+
factory ─ 读 settings.json 建指纹
|
|
74
|
+
├─▶ session_start
|
|
75
|
+
└─▶ before_agent_start
|
|
76
|
+
|
|
77
|
+
session_start
|
|
78
|
+
├─ 指纹变化 ──▶ 通知:手册 / 结论可能过期
|
|
79
|
+
└─ force 顺序错 ──▶ 备份 + 重排 packages
|
|
80
|
+
|
|
81
|
+
before_agent_start
|
|
82
|
+
└─ 注入版本 vs 磁盘不一致 ──▶ 通知 + nextTurn 尾部消息(以磁盘为准)
|
|
79
83
|
```
|
|
80
84
|
|
|
81
85
|
## 原理(小白)
|
|
82
86
|
|
|
83
87
|
**像出门前的门卫**,检查三件事:开关是否一致、排队顺序对不对、手里的说明书是不是最新版;能顺手修的直接修,修不了就提醒你。
|
|
84
88
|
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
D -->|否| G[直接调好]
|
|
93
|
-
E -->|否| H[提醒:以手上为准]
|
|
89
|
+
```text
|
|
90
|
+
启动
|
|
91
|
+
↓
|
|
92
|
+
门卫三项检查
|
|
93
|
+
├─ 开关一致?否 ──▶ 提醒
|
|
94
|
+
├─ 顺序对不对?否 ──▶ 直接调好
|
|
95
|
+
└─ 说明书最新?否 ──▶ 提醒:以手上为准
|
|
94
96
|
```
|
|
95
97
|
|
|
96
98
|
## License
|
|
@@ -164,28 +166,30 @@ Injection mismatch: injected v22.172 != disk v22.173 (disk wins) -> the injected
|
|
|
164
166
|
|
|
165
167
|
## How it works (technical)
|
|
166
168
|
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
169
|
+
```text
|
|
170
|
+
factory: build fingerprint from settings.json
|
|
171
|
+
├─▶ session_start
|
|
172
|
+
└─▶ before_agent_start
|
|
173
|
+
|
|
174
|
+
session_start
|
|
175
|
+
├─ fingerprint changed ──▶ notify: manuals may be stale
|
|
176
|
+
└─ force order wrong ──▶ backup + reorder packages
|
|
177
|
+
|
|
178
|
+
before_agent_start
|
|
179
|
+
└─ injected vs disk mismatch ──▶ notify + nextTurn message (trust disk)
|
|
174
180
|
```
|
|
175
181
|
|
|
176
182
|
## How it works (plain words)
|
|
177
183
|
|
|
178
184
|
**Like a doorman** before you leave: checks three things — switches agree, queue order is right, the manual in hand is the latest version; fixes what it can and tells you the rest.
|
|
179
185
|
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
D -->|no| G[fix directly]
|
|
188
|
-
E -->|no| H[notify: trust the copy in hand]
|
|
186
|
+
```text
|
|
187
|
+
startup
|
|
188
|
+
↓
|
|
189
|
+
doorman: three checks
|
|
190
|
+
├─ switches agree? no ──▶ notify
|
|
191
|
+
├─ order right? no ──▶ fix directly
|
|
192
|
+
└─ manual latest? no ──▶ notify: trust the copy in hand
|
|
189
193
|
```
|
|
190
194
|
## License
|
|
191
195
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-patch-keeper",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "pi config guards: codemode single-source check, force-order guard (auto-fix), settings fingerprint drift, injected-manual alignment. (PiDeck / third-party source patches are a local-only module, not bundled.)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|