@nextclaw/openclaw-compat 0.1.20 → 0.1.23

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 -2
  2. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -1808,6 +1808,7 @@ function appendBundledChannelPlugins(params) {
1808
1808
  });
1809
1809
  continue;
1810
1810
  }
1811
+ const enableState = resolveEnableState(pluginId, params.normalizedConfig);
1811
1812
  const record = createPluginRecord({
1812
1813
  id: pluginId,
1813
1814
  name: definition?.name ?? pluginId,
@@ -1817,10 +1818,16 @@ function appendBundledChannelPlugins(params) {
1817
1818
  source,
1818
1819
  origin: "bundled",
1819
1820
  workspaceDir: params.runtime.workspaceDir,
1820
- enabled: true,
1821
+ enabled: enableState.enabled,
1821
1822
  configSchema: Boolean(definition?.configSchema),
1822
1823
  configJsonSchema: definition?.configSchema
1823
1824
  });
1825
+ if (!enableState.enabled) {
1826
+ record.status = "disabled";
1827
+ record.error = enableState.reason;
1828
+ params.registry.plugins.push(record);
1829
+ continue;
1830
+ }
1824
1831
  if (typeof register !== "function") {
1825
1832
  record.status = "error";
1826
1833
  record.error = "plugin export missing register/activate";
@@ -1894,7 +1901,8 @@ function loadOpenClawPlugins(options) {
1894
1901
  appendBundledChannelPlugins({
1895
1902
  registry,
1896
1903
  runtime: registerRuntime,
1897
- jiti
1904
+ jiti,
1905
+ normalizedConfig: normalized
1898
1906
  });
1899
1907
  if (!loadExternalPlugins) {
1900
1908
  return registry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/openclaw-compat",
3
- "version": "0.1.20",
3
+ "version": "0.1.23",
4
4
  "private": false,
5
5
  "description": "OpenClaw plugin compatibility layer for NextClaw.",
6
6
  "type": "module",
@@ -18,18 +18,18 @@
18
18
  "jiti": "^1.21.7",
19
19
  "jszip": "^3.10.1",
20
20
  "tar": "^7.4.3",
21
- "@nextclaw/core": "^0.6.27",
22
- "@nextclaw/channel-plugin-telegram": "^0.1.2",
23
- "@nextclaw/channel-plugin-whatsapp": "^0.1.2",
24
- "@nextclaw/channel-plugin-discord": "^0.1.2",
25
- "@nextclaw/channel-plugin-feishu": "^0.1.2",
26
- "@nextclaw/channel-plugin-mochat": "^0.1.2",
27
- "@nextclaw/channel-plugin-dingtalk": "^0.1.2",
28
- "@nextclaw/channel-plugin-wecom": "^0.1.2",
29
- "@nextclaw/channel-plugin-email": "^0.1.2",
30
- "@nextclaw/channel-plugin-slack": "^0.1.2",
31
- "@nextclaw/channel-plugin-qq": "^0.1.2",
32
- "@nextclaw/channel-runtime": "^0.1.13"
21
+ "@nextclaw/core": "^0.6.30",
22
+ "@nextclaw/channel-plugin-telegram": "^0.1.4",
23
+ "@nextclaw/channel-plugin-whatsapp": "^0.1.4",
24
+ "@nextclaw/channel-plugin-discord": "^0.1.4",
25
+ "@nextclaw/channel-plugin-feishu": "^0.1.4",
26
+ "@nextclaw/channel-plugin-mochat": "^0.1.4",
27
+ "@nextclaw/channel-plugin-dingtalk": "^0.1.4",
28
+ "@nextclaw/channel-plugin-wecom": "^0.1.4",
29
+ "@nextclaw/channel-plugin-email": "^0.1.4",
30
+ "@nextclaw/channel-plugin-slack": "^0.1.4",
31
+ "@nextclaw/channel-plugin-qq": "^0.1.4",
32
+ "@nextclaw/channel-runtime": "^0.1.15"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "^20.17.6",