pi-patch-keeper 1.2.9 → 1.2.10
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 +13 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,7 +47,6 @@ pi install npm:pi-patch-keeper
|
|
|
47
47
|
- `before_agent_start`:比对注入手册版本与磁盘版本;不一致时通知并以 `nextTurn` 尾部消息提示模型以磁盘为准;**不返回 `systemPrompt`**。
|
|
48
48
|
- 写盘用临时文件 + rename;修复前备份。
|
|
49
49
|
|
|
50
|
-
|
|
51
50
|
## 原理(专业)
|
|
52
51
|
|
|
53
52
|
```mermaid
|
|
@@ -64,20 +63,19 @@ flowchart TD
|
|
|
64
63
|
|
|
65
64
|
## 原理(小白)
|
|
66
65
|
|
|
67
|
-
|
|
66
|
+
**像出门前的门卫**,检查三件事:开关是否一致、排队顺序对不对、手里的说明书是不是最新版;能顺手修的直接修,修不了就提醒你。
|
|
68
67
|
|
|
69
68
|
```mermaid
|
|
70
|
-
flowchart
|
|
71
|
-
A[启动] --> B[
|
|
69
|
+
flowchart TD
|
|
70
|
+
A[启动] --> B[门卫三项检查]
|
|
72
71
|
B --> C{开关一致?}
|
|
73
|
-
B --> D{
|
|
72
|
+
B --> D{顺序对不对?}
|
|
74
73
|
B --> E{说明书最新?}
|
|
75
74
|
C -->|否| F[提醒]
|
|
76
75
|
D -->|否| G[直接调好]
|
|
77
|
-
E -->|否| H[
|
|
76
|
+
E -->|否| H[提醒:以手上为准]
|
|
78
77
|
```
|
|
79
78
|
|
|
80
|
-
|
|
81
79
|
## License
|
|
82
80
|
|
|
83
81
|
MIT
|
|
@@ -128,7 +126,6 @@ No config file (only reads `settings.json` and `APPEND_SYSTEM.md`); no environme
|
|
|
128
126
|
- `before_agent_start`: compares the injected manual version with disk; on mismatch it notifies and sends a `nextTurn` message telling the model to trust disk; **never returns `systemPrompt`**.
|
|
129
127
|
- Writes are atomic (temp file + rename); a backup precedes any repair.
|
|
130
128
|
|
|
131
|
-
|
|
132
129
|
## How it works (technical)
|
|
133
130
|
|
|
134
131
|
```mermaid
|
|
@@ -142,18 +139,20 @@ flowchart TD
|
|
|
142
139
|
C --> H[before_agent_start<br/>compare injected manual vs disk]
|
|
143
140
|
H -->|mismatch| I[notify + nextTurn message<br/>trust disk]
|
|
144
141
|
|
|
142
|
+
```
|
|
143
|
+
|
|
145
144
|
## How it works (plain words)
|
|
146
145
|
|
|
147
|
-
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.
|
|
146
|
+
**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.
|
|
148
147
|
|
|
149
148
|
```mermaid
|
|
150
|
-
flowchart
|
|
151
|
-
A[startup] --> B[doorman
|
|
149
|
+
flowchart TD
|
|
150
|
+
A[startup] --> B[doorman: three checks]
|
|
152
151
|
B --> C{switches agree?}
|
|
153
|
-
B --> D{
|
|
154
|
-
B --> E{manual
|
|
152
|
+
B --> D{order right?}
|
|
153
|
+
B --> E{manual latest?}
|
|
155
154
|
C -->|no| F[notify]
|
|
156
|
-
D -->|no| G[fix
|
|
155
|
+
D -->|no| G[fix directly]
|
|
157
156
|
E -->|no| H[notify: trust the copy in hand]
|
|
158
157
|
```
|
|
159
158
|
flowchart TD
|
|
@@ -165,7 +164,6 @@ flowchart TD
|
|
|
165
164
|
F -->|yes| G[backup + reorder packages]
|
|
166
165
|
C --> H[before_agent_start<br/>compare injected manual vs disk]
|
|
167
166
|
H -->|mismatch| I[notify + nextTurn message<br/>trust disk]
|
|
168
|
-
```
|
|
169
167
|
|
|
170
168
|
## License
|
|
171
169
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-patch-keeper",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
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",
|