pi-spark 0.23.0 → 0.23.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.23.1](https://github.com/zlliang/pi-spark/compare/v0.23.0...v0.23.1) (2026-09-12)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **credits:** refresh pricing on user input ([8183402](https://github.com/zlliang/pi-spark/commit/8183402da978b41696685e244a698214fd519ce4))
9
+
3
10
  ## [0.23.0](https://github.com/zlliang/pi-spark/compare/v0.22.3...v0.23.0) (2026-09-11)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-spark",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "description": "Pi package that polishes your daily experience",
5
5
  "keywords": [
6
6
  "pi-coding-agent",
@@ -20,6 +20,12 @@ export function registerCredits(pi: ExtensionAPI): void {
20
20
  creditsManager.refresh(ctx);
21
21
  });
22
22
 
23
+ // Background calls run at `before_agent_start`, before the first `context` event, and the model
24
+ // registry may have been refreshed since the last apply.
25
+ pi.on("input", (_event, ctx) => {
26
+ creditsManager?.refresh(ctx);
27
+ });
28
+
23
29
  pi.on("model_select", (_event, ctx) => {
24
30
  creditsManager?.refresh(ctx);
25
31
  });
@@ -48,7 +48,6 @@ export const deepseekProvider: CreditsProvider = {
48
48
  ],
49
49
  },
50
50
  {
51
- // Update to Flash rates when V4 Pro retires on September 14, 2026 at 04:00 UTC.
52
51
  model: "deepseek-v4-pro",
53
52
  defaultCost: { input: 0.66, output: 1.98, cacheRead: 0.022, cacheWrite: 0, label: "off-peak" },
54
53
  windows: [