feat(provider): refresh models per AI provider

This commit is contained in:
yiling
2026-11-29 12:48:43 +08:00
parent d315253450
commit 13d06f8ebc
36 changed files with 1497 additions and 4396 deletions
@@ -0,0 +1,12 @@
diff --git a/dist/core/remote-catalog-provider.js b/dist/core/remote-catalog-provider.js
index debdf90cb230159dc3ad344fb5ebd0af3dbd91e1..9466f1d1a5b9475e18eb8c6376b11cc4a87fff24 100644
--- a/dist/core/remote-catalog-provider.js
+++ b/dist/core/remote-catalog-provider.js
@@ -1,5 +1,5 @@
-import { getModelType, isModelType, } from "@earendil-works/pi-ai";
-import { VERSION } from "../config.js";
+// Embedded builds cannot locate the coding-agent package.json at runtime.
+import { getModelType, isModelType, PI_AI_VERSION as VERSION } from "@earendil-works/pi-ai";
import { fetchWithRetry } from "../utils/management-http.js";
import { getPiUserAgent } from "../utils/pi-user-agent.js";
const DEFAULT_CATALOG_BASE_URL = "https://pi.dev";