@hyav/pi-provider 0.1.6 → 0.1.7
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 +4 -0
- package/core/runtime.ts +13 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file is the authoritative user-facing release history for `@hyav/pi-provider`.
|
|
4
4
|
|
|
5
|
+
## 0.1.7 - 2026-08-24
|
|
6
|
+
|
|
7
|
+
- Refresh the active model catalog dynamically on `/status refresh` and `/status check` by delegating to Pi's model registry with forced network revalidation, keeping the displayed model catalog and model counts up to date without requiring `/reload`.
|
|
8
|
+
|
|
5
9
|
## 0.1.6 - 2026-08-24
|
|
6
10
|
|
|
7
11
|
- Prevent Charm Hyper model-refresh warnings when no credentials are configured by registering OAuth-capable Providers without unresolved optional environment API keys and clearing stale API-key configuration after `/reload`; configured environment and stored API keys remain supported.
|
package/core/runtime.ts
CHANGED
|
@@ -358,6 +358,19 @@ export function installPiProviderRuntime(
|
|
|
358
358
|
const refreshChecks: Array<Promise<unknown>> = [];
|
|
359
359
|
if (status) refreshChecks.push(statusManager.update(statusContext, { force: true }));
|
|
360
360
|
if (preflight) refreshChecks.push(preflightManager.update(preflightContext, { force: true }));
|
|
361
|
+
if (typeof ctx.modelRegistry?.refresh === "function") {
|
|
362
|
+
refreshChecks.push(
|
|
363
|
+
Promise.resolve()
|
|
364
|
+
.then(() =>
|
|
365
|
+
ctx.modelRegistry.refresh({
|
|
366
|
+
force: true,
|
|
367
|
+
allowNetwork: true,
|
|
368
|
+
providers: [model.provider],
|
|
369
|
+
} as any),
|
|
370
|
+
)
|
|
371
|
+
.catch(() => undefined),
|
|
372
|
+
);
|
|
373
|
+
}
|
|
361
374
|
|
|
362
375
|
let liveCheck: Promise<LiveCheckResult | undefined> = Promise.resolve(undefined);
|
|
363
376
|
if (mode === "check") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyav/pi-provider",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Provider extension toolkit for Pi to integrate and manage custom LLM providers with dynamic models, request tuners, and account status.",
|
|
5
5
|
"author": "hyav",
|
|
6
6
|
"license": "MIT",
|