@nextclaw/openclaw-compat 0.3.7 → 0.3.9
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/dist/index.js +19 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -376,6 +376,23 @@ function getPackageManifestMetadata(manifest) {
|
|
|
376
376
|
|
|
377
377
|
// src/plugins/discovery.ts
|
|
378
378
|
var EXTENSION_EXTS = /* @__PURE__ */ new Set([".ts", ".js", ".mts", ".cts", ".mjs", ".cjs"]);
|
|
379
|
+
function collectConfiguredInstallPaths(config) {
|
|
380
|
+
if (!config?.plugins?.installs) {
|
|
381
|
+
return [];
|
|
382
|
+
}
|
|
383
|
+
const paths = [];
|
|
384
|
+
for (const installRecord of Object.values(config.plugins.installs)) {
|
|
385
|
+
if (!installRecord || typeof installRecord !== "object") {
|
|
386
|
+
continue;
|
|
387
|
+
}
|
|
388
|
+
const installPath = typeof installRecord.installPath === "string" ? installRecord.installPath.trim() : "";
|
|
389
|
+
if (!installPath || paths.includes(installPath)) {
|
|
390
|
+
continue;
|
|
391
|
+
}
|
|
392
|
+
paths.push(installPath);
|
|
393
|
+
}
|
|
394
|
+
return paths;
|
|
395
|
+
}
|
|
379
396
|
function resolveUserPath(input) {
|
|
380
397
|
return path2.resolve(expandHome(input));
|
|
381
398
|
}
|
|
@@ -596,7 +613,8 @@ function discoverOpenClawPlugins(params) {
|
|
|
596
613
|
const diagnostics = [];
|
|
597
614
|
const seen = /* @__PURE__ */ new Set();
|
|
598
615
|
const workspaceDir = params.workspaceDir?.trim();
|
|
599
|
-
const
|
|
616
|
+
const configuredLoadPaths = params.extraPaths ?? params.config?.plugins?.load?.paths ?? [];
|
|
617
|
+
const loadPaths = [...configuredLoadPaths, ...collectConfiguredInstallPaths(params.config)];
|
|
600
618
|
for (const rawPath of loadPaths) {
|
|
601
619
|
if (typeof rawPath !== "string") {
|
|
602
620
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/openclaw-compat",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "OpenClaw plugin compatibility layer for NextClaw.",
|
|
6
6
|
"type": "module",
|
|
@@ -19,20 +19,20 @@
|
|
|
19
19
|
"jiti": "^1.21.7",
|
|
20
20
|
"jszip": "^3.10.1",
|
|
21
21
|
"tar": "^7.4.3",
|
|
22
|
-
"@nextclaw/channel-plugin-mochat": "0.2.4",
|
|
23
|
-
"@nextclaw/channel-plugin-feishu": "0.2.4",
|
|
24
22
|
"@nextclaw/channel-plugin-dingtalk": "0.2.4",
|
|
25
23
|
"@nextclaw/channel-plugin-email": "0.2.4",
|
|
26
24
|
"@nextclaw/channel-plugin-slack": "0.2.4",
|
|
27
|
-
"@nextclaw/channel-plugin-
|
|
28
|
-
"@nextclaw/channel-plugin-
|
|
25
|
+
"@nextclaw/channel-plugin-feishu": "0.2.4",
|
|
26
|
+
"@nextclaw/channel-plugin-mochat": "0.2.4",
|
|
27
|
+
"@nextclaw/channel-plugin-telegram": "0.2.4",
|
|
29
28
|
"@nextclaw/channel-runtime": "0.2.4",
|
|
30
|
-
"@nextclaw/channel-plugin-
|
|
29
|
+
"@nextclaw/channel-plugin-discord": "0.2.4",
|
|
30
|
+
"@nextclaw/ncp": "0.3.1",
|
|
31
31
|
"@nextclaw/core": "0.9.4",
|
|
32
32
|
"@nextclaw/ncp-toolkit": "0.4.1",
|
|
33
|
-
"@nextclaw/
|
|
34
|
-
"@nextclaw/channel-plugin-
|
|
35
|
-
"@nextclaw/channel-plugin-
|
|
33
|
+
"@nextclaw/channel-plugin-wecom": "0.2.4",
|
|
34
|
+
"@nextclaw/channel-plugin-qq": "0.2.4",
|
|
35
|
+
"@nextclaw/channel-plugin-whatsapp": "0.2.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^20.17.6",
|