dsh-llm-codebuddy 1.3.2 → 1.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.
- package/cli.js +3 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -8,6 +8,8 @@ import { spawnSync } from "node:child_process";
|
|
|
8
8
|
import { parseDocument } from "yaml";
|
|
9
9
|
|
|
10
10
|
const PACKAGE = "dsh-llm-codebuddy";
|
|
11
|
+
const PACKAGE_VERSION = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8")).version;
|
|
12
|
+
const PACKAGE_SPEC = `${PACKAGE}@${PACKAGE_VERSION}`;
|
|
11
13
|
const PROVIDER_PATH = ["llm-pi-ai", "providers", "codebuddy-cn"];
|
|
12
14
|
const IGNORED_BUILDS = ["@google/genai", "protobufjs"];
|
|
13
15
|
const require = createRequire(import.meta.url);
|
|
@@ -112,7 +114,7 @@ function install() {
|
|
|
112
114
|
for (const profile of ["web", "headless"]) {
|
|
113
115
|
runDsh(["plugin", "--profile", profile, "list", "--depth", "0"]);
|
|
114
116
|
const workspace = join(dshHome(), "profiles", profile, "pnpm-workspace.yaml");
|
|
115
|
-
withPnpmBuildPolicy(workspace, () => runDsh(["plugin", "--profile", profile, "add",
|
|
117
|
+
withPnpmBuildPolicy(workspace, () => runDsh(["plugin", "--profile", profile, "add", PACKAGE_SPEC]));
|
|
116
118
|
}
|
|
117
119
|
console.log("CodeBuddy Provider 已安装。请重启 DSH 后进行配置。");
|
|
118
120
|
}
|