fix(deps): use host-provided pi core packages
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
- Use the host-provided `pi-ai` and `pi-coding-agent` core packages instead of installing a private pinned `pi-ai` runtime copy.
|
||||||
|
|
||||||
## 0.4.4 - 2026-08-03
|
## 0.4.4 - 2026-08-03
|
||||||
|
|
||||||
- Fix cached input tokens being counted twice.
|
- Fix cached input tokens being counted twice.
|
||||||
|
|||||||
Generated
+345
-303
File diff suppressed because it is too large
Load Diff
+6
-4
@@ -49,18 +49,20 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@earendil-works/pi-ai": "*",
|
||||||
"@types/node": "25.6.0",
|
"@types/node": "25.6.0",
|
||||||
"prettier": "^3.5.0",
|
"prettier": "^3.5.0",
|
||||||
"tsx": "4.22.4",
|
"tsx": "4.22.4",
|
||||||
"typescript": "6.0.3"
|
"typescript": "6.0.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
|
||||||
"@earendil-works/pi-ai": "0.75.5"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@earendil-works/pi-coding-agent": "^0.75.5"
|
"@earendil-works/pi-ai": "*",
|
||||||
|
"@earendil-works/pi-coding-agent": "*"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
|
"@earendil-works/pi-ai": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
"@earendil-works/pi-coding-agent": {
|
"@earendil-works/pi-coding-agent": {
|
||||||
"optional": true
|
"optional": true
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ export function calculateCommandCodeCost(model: ModelLike, usage: Usage): void {
|
|||||||
usage.cost.input = (model.cost.input / 1_000_000) * usage.input
|
usage.cost.input = (model.cost.input / 1_000_000) * usage.input
|
||||||
usage.cost.output = (model.cost.output / 1_000_000) * usage.output
|
usage.cost.output = (model.cost.output / 1_000_000) * usage.output
|
||||||
usage.cost.cacheRead = (model.cost.cacheRead / 1_000_000) * usage.cacheRead
|
usage.cost.cacheRead = (model.cost.cacheRead / 1_000_000) * usage.cacheRead
|
||||||
usage.cost.cacheWrite = (model.cost.cacheWrite / 1_000_000) * usage.cacheWrite
|
usage.cost.cacheWrite = (model.cost.cacheWrite * usage.cacheWrite) / 1_000_000
|
||||||
usage.cost.total =
|
usage.cost.total =
|
||||||
usage.cost.input + usage.cost.output + usage.cost.cacheRead + usage.cost.cacheWrite
|
usage.cost.input + usage.cost.output + usage.cost.cacheRead + usage.cost.cacheWrite
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user