openclaw-openviking-setup-helper 0.2.16-dev.0 → 0.2.16-dev.1
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/install.js +3 -6
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -867,9 +867,8 @@ function formatTargetVersionLabel() {
|
|
|
867
867
|
|
|
868
868
|
function extractRuntimeConfigFromPluginEntry(entryConfig) {
|
|
869
869
|
if (!entryConfig || typeof entryConfig !== "object") return null;
|
|
870
|
-
if (entryConfig.mode != null && entryConfig.mode !== "remote") return null;
|
|
871
870
|
|
|
872
|
-
const runtime = {
|
|
871
|
+
const runtime = {};
|
|
873
872
|
if (typeof entryConfig.baseUrl === "string" && entryConfig.baseUrl.trim()) {
|
|
874
873
|
runtime.baseUrl = entryConfig.baseUrl.trim();
|
|
875
874
|
}
|
|
@@ -1030,10 +1029,10 @@ function prepareUpgradeRuntimeConfig(installedState) {
|
|
|
1030
1029
|
}
|
|
1031
1030
|
|
|
1032
1031
|
if (!runtime) {
|
|
1033
|
-
runtime = {
|
|
1032
|
+
runtime = {};
|
|
1034
1033
|
}
|
|
1035
1034
|
|
|
1036
|
-
runtime.mode
|
|
1035
|
+
delete runtime.mode;
|
|
1037
1036
|
runtime.baseUrl = runtime.baseUrl || remoteBaseUrl;
|
|
1038
1037
|
return runtime;
|
|
1039
1038
|
}
|
|
@@ -1449,13 +1448,11 @@ async function configureOpenClawPlugin({
|
|
|
1449
1448
|
}
|
|
1450
1449
|
|
|
1451
1450
|
const effectiveRuntimeConfig = runtimeConfig || {
|
|
1452
|
-
mode: "remote",
|
|
1453
1451
|
baseUrl: remoteBaseUrl,
|
|
1454
1452
|
apiKey: remoteApiKey,
|
|
1455
1453
|
agentId: remoteAgentId,
|
|
1456
1454
|
};
|
|
1457
1455
|
|
|
1458
|
-
await oc(["config", "set", `plugins.entries.${pluginId}.config.mode`, "remote"]);
|
|
1459
1456
|
await oc(["config", "set", `plugins.entries.${pluginId}.config.baseUrl`, effectiveRuntimeConfig.baseUrl || remoteBaseUrl]);
|
|
1460
1457
|
if (effectiveRuntimeConfig.apiKey) {
|
|
1461
1458
|
await oc(["config", "set", `plugins.entries.${pluginId}.config.apiKey`, effectiveRuntimeConfig.apiKey]);
|