@nextclaw/openclaw-compat 0.1.19 → 0.1.21
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 +10 -2
- package/package.json +3 -3
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:
|
|
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.
|
|
3
|
+
"version": "0.1.21",
|
|
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.6.
|
|
21
|
+
"@nextclaw/core": "^0.6.27",
|
|
22
22
|
"@nextclaw/channel-plugin-telegram": "^0.1.2",
|
|
23
23
|
"@nextclaw/channel-plugin-whatsapp": "^0.1.2",
|
|
24
24
|
"@nextclaw/channel-plugin-discord": "^0.1.2",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@nextclaw/channel-plugin-email": "^0.1.2",
|
|
30
30
|
"@nextclaw/channel-plugin-slack": "^0.1.2",
|
|
31
31
|
"@nextclaw/channel-plugin-qq": "^0.1.2",
|
|
32
|
-
"@nextclaw/channel-runtime": "^0.1.
|
|
32
|
+
"@nextclaw/channel-runtime": "^0.1.13"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^20.17.6",
|