openclaw-openviking-setup-helper 0.3.0-beta.4 → 0.3.0-beta.5
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 +12 -1
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -1550,7 +1550,18 @@ async function configureOpenClawPlugin({
|
|
|
1550
1550
|
await oc(["config", "set", `plugins.entries.${pluginId}.config.apiKey`, effectiveRuntimeConfig.apiKey]);
|
|
1551
1551
|
}
|
|
1552
1552
|
if (effectiveRuntimeConfig.agent_prefix) {
|
|
1553
|
-
|
|
1553
|
+
try {
|
|
1554
|
+
await oc(["config", "set", `plugins.entries.${pluginId}.config.agent_prefix`, effectiveRuntimeConfig.agent_prefix]);
|
|
1555
|
+
} catch (_e) {
|
|
1556
|
+
try {
|
|
1557
|
+
await oc(["config", "set", `plugins.entries.${pluginId}.config.agentId`, effectiveRuntimeConfig.agent_prefix]);
|
|
1558
|
+
} catch (_e2) {
|
|
1559
|
+
warn(tr(
|
|
1560
|
+
`Could not set agent prefix "${effectiveRuntimeConfig.agent_prefix}": config schema may not support this field`,
|
|
1561
|
+
`无法设置 agent prefix "${effectiveRuntimeConfig.agent_prefix}":配置 schema 可能不支持此字段`,
|
|
1562
|
+
));
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1554
1565
|
}
|
|
1555
1566
|
if (claimSlot) {
|
|
1556
1567
|
await oc(["config", "set", `plugins.slots.${pluginSlot}`, pluginId]);
|