pi-cache-optimizer 2.8.2 → 2.8.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.
Files changed (4) hide show
  1. package/README.md +24 -18
  2. package/README.zh-CN.md +24 -17
  3. package/index.ts +915 -435
  4. package/package.json +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-cache-optimizer",
3
- "version": "2.8.2",
3
+ "version": "2.8.4",
4
4
  "description": "Improve Pi prompt/KV cache hit rates with stable prompts, OpenAI-compatible cache keys, proxy compat warnings, and footer cache stats.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -28,20 +28,20 @@
28
28
  "#extension": "./index.ts"
29
29
  },
30
30
  "scripts": {
31
- "test": "node --import jiti/register tests/review-findings.test.ts",
31
+ "test": "node --import jiti/register --test tests/*.test.ts",
32
32
  "typecheck": "tsc --noEmit --pretty false",
33
33
  "check:diff": "git diff --check",
34
34
  "check:pack": "npm pack --dry-run --cache node_modules/.cache/npm",
35
35
  "check": "npm run typecheck && npm test && npm run check:diff && npm run check:pack"
36
36
  },
37
37
  "devDependencies": {
38
- "@earendil-works/pi-coding-agent": "^0.84.1",
38
+ "@earendil-works/pi-coding-agent": "^0.84.2",
39
39
  "@types/node": "^22.0.0",
40
40
  "jiti": "^2.7.0",
41
41
  "typescript": "^5.8.3"
42
42
  },
43
43
  "peerDependencies": {
44
- "@earendil-works/pi-coding-agent": "*"
44
+ "@earendil-works/pi-coding-agent": ">=0.82.0"
45
45
  },
46
46
  "repository": {
47
47
  "type": "git",