oh-langfuse 0.1.61 → 0.1.62
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/package.json
CHANGED
|
@@ -1080,7 +1080,7 @@ async function runNpmInstallOrThrow({ opencodeDir, pkgName = "opencode-plugin-la
|
|
|
1080
1080
|
);
|
|
1081
1081
|
}
|
|
1082
1082
|
|
|
1083
|
-
function setWindowsUserEnv({ publicKey, secretKey, baseUrl }) {
|
|
1083
|
+
function setWindowsUserEnv({ publicKey, secretKey, baseUrl }) {
|
|
1084
1084
|
const cmd = [
|
|
1085
1085
|
"$ErrorActionPreference = 'Stop';",
|
|
1086
1086
|
`[Environment]::SetEnvironmentVariable('LANGFUSE_PUBLIC_KEY', ${psQuote(publicKey)}, 'User');`,
|
|
@@ -1090,11 +1090,10 @@ function setWindowsUserEnv({ publicKey, secretKey, baseUrl }) {
|
|
|
1090
1090
|
const r = spawnSync("powershell", ["-NoProfile", "-Command", cmd], { stdio: "inherit", encoding: "utf8" });
|
|
1091
1091
|
if (r.status !== 0) {
|
|
1092
1092
|
throw new Error("写入用户级环境变量失败。");
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
function prependWindowsUserPath(dir) {
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
function prependWindowsUserPath(dir) {
|
|
1098
1097
|
if (process.platform !== "win32") return false;
|
|
1099
1098
|
const cmd = [
|
|
1100
1099
|
"$ErrorActionPreference = 'Stop';",
|