@zhushanwen/pi-system-prompt 1.1.1 → 1.1.2
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/index.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhushanwen/pi-system-prompt",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "System prompt injection extension for Pi — reads config and appends to system prompt",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"index.ts"
|
|
25
25
|
],
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@earendil-works/pi-coding-agent": "^0.84.
|
|
27
|
+
"@earendil-works/pi-coding-agent": "^0.84.4"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^24.0.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"vitest": "^4.1.8"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@zhushanwen/pi-extension-logger": "0.3.
|
|
35
|
+
"@zhushanwen/pi-extension-logger": "0.3.1"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"typecheck": "npx tsc --noEmit",
|
package/src/index.ts
CHANGED
|
@@ -228,8 +228,9 @@ function logHookFailure(err: unknown): void {
|
|
|
228
228
|
// best-effort:stderr 写失败的终极兜底——console 内部吞错不会抛,仍不外泄到 agent loop。
|
|
229
229
|
try {
|
|
230
230
|
process.stderr.write(`[xyz-system-prompt-extension] logHookFailure also failed: ${String(nestedErr)}\n`)
|
|
231
|
-
} catch {
|
|
232
|
-
/*
|
|
231
|
+
} catch (finalErr) {
|
|
232
|
+
/* 完全静默:两层兜底都失败时无处可写 */
|
|
233
|
+
void finalErr
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
236
|
}
|