Files
shumai/patches/@earendil-works%2Fpi-coding-agent@1.7.0.patch
T

13 lines
743 B
Diff
Raw Normal View History

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";