pi-cliproxyapi-provider 0.3.2 → 0.3.3

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.
@@ -27,16 +27,11 @@ export default async function (pi: ExtensionAPI) {
27
27
  await runtime.start();
28
28
 
29
29
  let backgroundRefreshStarted = false;
30
- pi.on("session_start", (event, ctx) => {
30
+ pi.on("session_start", (event) => {
31
31
  if (event.reason !== "startup" || backgroundRefreshStarted) return;
32
32
  backgroundRefreshStarted = true;
33
- void runtime.refresh("models", "background").then((result) => {
34
- if (result.models.error && ctx.hasUI) {
35
- ctx.ui.setStatus("cliproxyapi", "CPA: cached models");
36
- } else if (ctx.hasUI) {
37
- ctx.ui.setStatus("cliproxyapi", undefined);
38
- }
39
- });
33
+ // Cached models are the normal startup path; refresh quietly in the background.
34
+ void runtime.refresh("models", "background");
40
35
  });
41
36
  } catch (error) {
42
37
  registerCliproxyapiCommand(pi);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-cliproxyapi-provider",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Pi provider package for CLIProxyAPI with automatic model discovery and models.dev enrichment.",
5
5
  "type": "module",
6
6
  "license": "MIT",