@zhushanwen/pi-cache-probe 0.3.3 → 0.3.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhushanwen/pi-cache-probe",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Zero-impact Pi probe extension — records system prompt / tools fingerprint hashes into session custom entries (only on change) to attribute LLM prompt-cache miss to prefix drift vs server-side eviction.",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -26,14 +26,14 @@
26
26
  "analyze.py"
27
27
  ],
28
28
  "dependencies": {
29
- "@zhushanwen/pi-ext-guards": "0.4.2"
29
+ "@zhushanwen/pi-ext-guards": "0.4.3"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@vitest/coverage-v8": "^4.1.9",
33
33
  "vitest": "^4.1.8"
34
34
  },
35
35
  "peerDependencies": {
36
- "@earendil-works/pi-coding-agent": "^0.84.4"
36
+ "@earendil-works/pi-coding-agent": "^1.0.0"
37
37
  },
38
38
  "scripts": {
39
39
  "typecheck": "npx tsc --noEmit",
@@ -62,8 +62,9 @@ export function hashOf(value: unknown): string {
62
62
  * (pi 源码 ai/src/api/openai-completions.ts 的 useDeveloperRole 分支)
63
63
  * - Anthropic:顶层 system(数组)
64
64
  * - Google:顶层字段 systemInstruction 为对象形态——仅手工伪造的输入可达:
65
- * pi-ai 0.84.4 实装(google-generative-ai.js:294 / google-vertex.js:368)恒传
66
- * string(sanitizeSurrogates(context.systemPrompt)),isRecord 分支对 string
65
+ * pi-ai 1.0.0 实装(dist/api/google-generative-ai.js / google-vertex.js 的
66
+ * systemInstruction: sanitizeSurrogates(...))恒传
67
+ * string,isRecord 分支对 string
67
68
  * 恒不命中,故实装流量下 Google 侧返回 null(spFull 观测恒 no-system)。
68
69
  * 归因是「提取只认对象形态」而非「Google 请求没有 system」,勿把下方
69
70
  * isRecord(systemInstruction) 分支误读为 Google 口径主通路。