@zhushanwen/pi-system-prompt-trace 0.1.2 → 0.1.3
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/package.json +3 -3
- package/src/baseline.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhushanwen/pi-system-prompt-trace",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "System prompt trace extension: appends xyz:system-prompt entries to the session JSONL whenever the effective system prompt is established or changes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@earendil-works/pi-coding-agent": "^0.84.
|
|
29
|
+
"@earendil-works/pi-coding-agent": "^0.84.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@vitest/coverage-v8": "^4.1.9",
|
|
33
33
|
"vitest": "^4.1.8"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@zhushanwen/pi-extension-logger": "0.3.
|
|
36
|
+
"@zhushanwen/pi-extension-logger": "0.3.1"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"typecheck": "npx tsc --noEmit",
|
package/src/baseline.ts
CHANGED
|
@@ -148,8 +148,9 @@ export function writePersistedBaseline(
|
|
|
148
148
|
// 条目;对齐 quota-providers atomicWriteJson);清理失败不掩盖原错误
|
|
149
149
|
try {
|
|
150
150
|
if (existsSync(tmpPath)) unlinkSync(tmpPath);
|
|
151
|
-
} catch {
|
|
151
|
+
} catch (cleanupErr) {
|
|
152
152
|
// 清理失败仅残留一个小文件,原错误优先上抛
|
|
153
|
+
void cleanupErr;
|
|
153
154
|
}
|
|
154
155
|
throw err;
|
|
155
156
|
}
|