@zhushanwen/pi-llm-shared 0.8.0 → 0.8.1
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 +4 -4
- package/src/config.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhushanwen/pi-llm-shared",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Shared LLM invocation library for Pi extensions — model resolution (ref exact only), LLM calling (completeSimple), and config read/write with mtime+size caching. Shared library, not a Pi extension.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"src/"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@zhushanwen/pi-extension-logger": "0.6.
|
|
21
|
-
"@zhushanwen/pi-ext-guards": "0.4.
|
|
22
|
-
"@zhushanwen/pi-file-lock": "0.4.
|
|
20
|
+
"@zhushanwen/pi-extension-logger": "0.6.1",
|
|
21
|
+
"@zhushanwen/pi-ext-guards": "0.4.1",
|
|
22
|
+
"@zhushanwen/pi-file-lock": "0.4.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@earendil-works/pi-ai": "^0.84.4",
|
package/src/config.ts
CHANGED
|
@@ -143,7 +143,7 @@ function uniqueTmpPath(configPath: string): string {
|
|
|
143
143
|
* @returns 成功 {success:true};失败 {success:false, error}
|
|
144
144
|
*
|
|
145
145
|
* 🔒 跨进程锁(D1e/W4,integrity-hardening.md §3.1,登记表 §6 rename-session 行):
|
|
146
|
-
* ext-config 家族被
|
|
146
|
+
* ext-config 家族被 taiji runtime(如 setRenameModel 写 model 字段,W1b 已持锁)与
|
|
147
147
|
* pi 子进程内扩展(本函数)双写。互斥只依赖同一 lockfile(<config>.lock),本侧
|
|
148
148
|
* withFileLockSync 协议与 runtime 侧 settings.json 写锁逐字对齐(realpath:false +
|
|
149
149
|
* stale 30s + busy-wait 1s 预算 fail-fast)。锁获取失败不降级无锁写——对端
|