@nextclaw/openclaw-compat 0.1.3 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1455,6 +1455,16 @@ function validatePluginConfig(params) {
1455
1455
  return { ok: false, errors: result.errors };
1456
1456
  }
1457
1457
  function loadOpenClawPlugins(options) {
1458
+ if (process.env.NEXTCLAW_ENABLE_OPENCLAW_PLUGINS !== "1") {
1459
+ return {
1460
+ plugins: [],
1461
+ tools: [],
1462
+ channels: [],
1463
+ providers: [],
1464
+ diagnostics: [],
1465
+ resolvedTools: []
1466
+ };
1467
+ }
1458
1468
  const logger = options.logger ?? defaultLogger2;
1459
1469
  const workspaceDir = options.workspaceDir?.trim() || getWorkspacePathFromConfig(options.config);
1460
1470
  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",
3
+ "version": "0.1.4",
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.5.0"
21
+ "@nextclaw/core": "^0.5.3"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "^20.17.6",