@nextclaw/openclaw-compat 0.1.3 → 0.1.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/dist/index.js +11 -9
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -291,7 +291,6 @@ async function stopPluginChannelGateways(handles) {
|
|
|
291
291
|
// src/plugins/discovery.ts
|
|
292
292
|
import fs2 from "fs";
|
|
293
293
|
import path2 from "path";
|
|
294
|
-
import { homedir } from "os";
|
|
295
294
|
import { expandHome, getDataPath } from "@nextclaw/core";
|
|
296
295
|
|
|
297
296
|
// src/plugins/manifest.ts
|
|
@@ -606,7 +605,7 @@ function discoverOpenClawPlugins(params) {
|
|
|
606
605
|
}
|
|
607
606
|
if (workspaceDir) {
|
|
608
607
|
discoverInDirectory({
|
|
609
|
-
dir: path2.join(workspaceDir, ".
|
|
608
|
+
dir: path2.join(workspaceDir, ".nextclaw", "extensions"),
|
|
610
609
|
origin: "workspace",
|
|
611
610
|
workspaceDir,
|
|
612
611
|
candidates,
|
|
@@ -621,13 +620,6 @@ function discoverOpenClawPlugins(params) {
|
|
|
621
620
|
diagnostics,
|
|
622
621
|
seen
|
|
623
622
|
});
|
|
624
|
-
discoverInDirectory({
|
|
625
|
-
dir: path2.join(homedir(), ".openclaw", "extensions"),
|
|
626
|
-
origin: "global",
|
|
627
|
-
candidates,
|
|
628
|
-
diagnostics,
|
|
629
|
-
seen
|
|
630
|
-
});
|
|
631
623
|
return { candidates, diagnostics };
|
|
632
624
|
}
|
|
633
625
|
|
|
@@ -1455,6 +1447,16 @@ function validatePluginConfig(params) {
|
|
|
1455
1447
|
return { ok: false, errors: result.errors };
|
|
1456
1448
|
}
|
|
1457
1449
|
function loadOpenClawPlugins(options) {
|
|
1450
|
+
if (process.env.NEXTCLAW_ENABLE_OPENCLAW_PLUGINS === "0") {
|
|
1451
|
+
return {
|
|
1452
|
+
plugins: [],
|
|
1453
|
+
tools: [],
|
|
1454
|
+
channels: [],
|
|
1455
|
+
providers: [],
|
|
1456
|
+
diagnostics: [],
|
|
1457
|
+
resolvedTools: []
|
|
1458
|
+
};
|
|
1459
|
+
}
|
|
1458
1460
|
const logger = options.logger ?? defaultLogger2;
|
|
1459
1461
|
const workspaceDir = options.workspaceDir?.trim() || getWorkspacePathFromConfig(options.config);
|
|
1460
1462
|
const normalized = normalizePluginsConfig(options.config.plugins);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/openclaw-compat",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "OpenClaw plugin compatibility layer for NextClaw.",
|
|
6
6
|
"type": "module",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"jiti": "^1.21.7",
|
|
19
19
|
"jszip": "^3.10.1",
|
|
20
20
|
"tar": "^7.4.3",
|
|
21
|
-
"@nextclaw/core": "^0.
|
|
21
|
+
"@nextclaw/core": "^0.6.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^20.17.6",
|