@zhushanwen/pi-system-prompt 1.0.1 → 1.0.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
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhushanwen/pi-system-prompt",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.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",
|
|
7
|
+
"xyz-agent": {
|
|
8
|
+
"role": "taiji"
|
|
9
|
+
},
|
|
7
10
|
"pi": {
|
|
8
11
|
"extensions": [
|
|
9
12
|
"./index.ts"
|
|
@@ -21,10 +24,11 @@
|
|
|
21
24
|
"index.ts"
|
|
22
25
|
],
|
|
23
26
|
"peerDependencies": {
|
|
24
|
-
"@earendil-works/pi-coding-agent": "
|
|
27
|
+
"@earendil-works/pi-coding-agent": "^0.84.1"
|
|
25
28
|
},
|
|
26
29
|
"devDependencies": {
|
|
27
30
|
"@types/node": "^24.0.0",
|
|
31
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
28
32
|
"vitest": "^4.1.8"
|
|
29
33
|
},
|
|
30
34
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* mock 策略(参照 msg-id-mapper 测试模式):pi SDK import type 零运行时解析,
|
|
15
15
|
* ExtensionAPI 用结构化桩;node:fs mock 后按路径分流(env 指向假目录,不碰真实文件系统)。
|
|
16
16
|
*
|
|
17
|
-
* 运行:cd extensions/system-prompt && npx vitest run
|
|
17
|
+
* 运行:cd extensions/taiji/system-prompt && npx vitest run
|
|
18
18
|
*/
|
|
19
19
|
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
|
|
20
20
|
import { readFileSync, readdirSync, statSync } from 'node:fs'
|