@coclaw/openclaw-coclaw 0.26.3 → 0.26.4
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coclaw/openclaw-coclaw",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "OpenClaw plugin for remote chat over WebRTC. Run `openclaw coclaw enroll` after install.",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"webchat"
|
|
21
21
|
],
|
|
22
22
|
"engines": {
|
|
23
|
-
"node": ">=
|
|
23
|
+
"node": ">=20.11.0"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public",
|
|
@@ -107,7 +107,7 @@ export async function inspectPluginInstall(pluginId, opts) {
|
|
|
107
107
|
*/
|
|
108
108
|
export function isNewerVersion(a, b) {
|
|
109
109
|
// 先比较 major.minor.patch(去掉 pre-release 后缀)
|
|
110
|
-
const parse = (v) => v.replace(/-.*$/, '').split('.').map(Number);
|
|
110
|
+
const parse = (v) => v.split('+')[0].replace(/-.*$/, '').split('.').map(Number);
|
|
111
111
|
const pa = parse(a);
|
|
112
112
|
const pb = parse(b);
|
|
113
113
|
for (let i = 0; i < 3; i++) {
|
|
@@ -116,6 +116,7 @@ function hasInlineKey(cfg, provider, deps) {
|
|
|
116
116
|
const providers = cfg?.models?.providers;
|
|
117
117
|
if (!providers || typeof providers !== 'object') return false;
|
|
118
118
|
const targetId = deps.resolveProviderIdForAuth(provider);
|
|
119
|
+
if (!targetId) return false;
|
|
119
120
|
for (const [nodeId, entry] of Object.entries(providers)) {
|
|
120
121
|
if (!entry || !deps.hasConfiguredSecretInput(entry.apiKey)) continue;
|
|
121
122
|
if (deps.resolveProviderIdForAuth(nodeId) === targetId) return true;
|