@nextclaw/openclaw-compat 0.3.3 → 0.3.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 +17 -7
- package/package.json +14 -14
package/dist/index.js
CHANGED
|
@@ -1071,7 +1071,6 @@ import fs5 from "fs";
|
|
|
1071
1071
|
import path6 from "path";
|
|
1072
1072
|
import { fileURLToPath } from "url";
|
|
1073
1073
|
import { createRequire } from "module";
|
|
1074
|
-
import createJitiImport from "jiti";
|
|
1075
1074
|
import { getWorkspacePathFromConfig } from "@nextclaw/core";
|
|
1076
1075
|
|
|
1077
1076
|
// src/plugins/candidate-filter.ts
|
|
@@ -1241,6 +1240,22 @@ function loadPluginUiMetadata(params) {
|
|
|
1241
1240
|
return toPluginUiMetadata(registry.plugins);
|
|
1242
1241
|
}
|
|
1243
1242
|
|
|
1243
|
+
// src/plugins/plugin-loader-jiti.ts
|
|
1244
|
+
import createJitiImport from "jiti";
|
|
1245
|
+
var createJiti = createJitiImport;
|
|
1246
|
+
function createPluginJiti(aliases) {
|
|
1247
|
+
return createJiti(import.meta.url, {
|
|
1248
|
+
interopDefault: true,
|
|
1249
|
+
extensions: [".ts", ".tsx", ".mts", ".cts", ".js", ".mjs", ".cjs", ".json"],
|
|
1250
|
+
alias: aliases,
|
|
1251
|
+
// Plugin install/upgrade is expected to hot-apply at runtime. Disable
|
|
1252
|
+
// Jiti's persistent/native require cache so a reload always sees the
|
|
1253
|
+
// latest plugin code on disk instead of reusing a stale in-memory module.
|
|
1254
|
+
requireCache: false,
|
|
1255
|
+
cache: false
|
|
1256
|
+
});
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1244
1259
|
// src/plugins/schema-validator.ts
|
|
1245
1260
|
import AjvPkg from "ajv";
|
|
1246
1261
|
var AjvCtor = AjvPkg;
|
|
@@ -1804,7 +1819,6 @@ function registerPluginWithApi(params) {
|
|
|
1804
1819
|
}
|
|
1805
1820
|
|
|
1806
1821
|
// src/plugins/loader.ts
|
|
1807
|
-
var createJiti = createJitiImport;
|
|
1808
1822
|
var defaultLogger2 = {
|
|
1809
1823
|
info: (message) => console.log(message),
|
|
1810
1824
|
warn: (message) => console.warn(message),
|
|
@@ -2050,11 +2064,7 @@ function loadOpenClawPlugins(options) {
|
|
|
2050
2064
|
reservedEngineKinds,
|
|
2051
2065
|
reservedNcpAgentRuntimeKinds
|
|
2052
2066
|
});
|
|
2053
|
-
const jiti =
|
|
2054
|
-
interopDefault: true,
|
|
2055
|
-
extensions: [".ts", ".tsx", ".mts", ".cts", ".js", ".mjs", ".cjs", ".json"],
|
|
2056
|
-
alias: buildPluginLoaderAliases()
|
|
2057
|
-
});
|
|
2067
|
+
const jiti = createPluginJiti(buildPluginLoaderAliases());
|
|
2058
2068
|
appendBundledChannelPlugins({
|
|
2059
2069
|
registry,
|
|
2060
2070
|
runtime: registerRuntime,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/openclaw-compat",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
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-
|
|
23
|
-
"@nextclaw/channel-plugin-dingtalk": "0.2.
|
|
24
|
-
"@nextclaw/channel-plugin-
|
|
25
|
-
"@nextclaw/channel-plugin-
|
|
26
|
-
"@nextclaw/channel-plugin-
|
|
27
|
-
"@nextclaw/channel-plugin-
|
|
28
|
-
"@nextclaw/channel-plugin-
|
|
29
|
-
"@nextclaw/channel-plugin-telegram": "0.2.
|
|
30
|
-
"@nextclaw/
|
|
31
|
-
"@nextclaw/channel-
|
|
22
|
+
"@nextclaw/channel-plugin-mochat": "0.2.2",
|
|
23
|
+
"@nextclaw/channel-plugin-dingtalk": "0.2.2",
|
|
24
|
+
"@nextclaw/channel-plugin-feishu": "0.2.2",
|
|
25
|
+
"@nextclaw/channel-plugin-slack": "0.2.2",
|
|
26
|
+
"@nextclaw/channel-plugin-email": "0.2.2",
|
|
27
|
+
"@nextclaw/channel-plugin-wecom": "0.2.2",
|
|
28
|
+
"@nextclaw/channel-plugin-qq": "0.2.2",
|
|
29
|
+
"@nextclaw/channel-plugin-telegram": "0.2.2",
|
|
30
|
+
"@nextclaw/core": "0.9.2",
|
|
31
|
+
"@nextclaw/channel-runtime": "0.2.2",
|
|
32
32
|
"@nextclaw/ncp": "0.3.1",
|
|
33
|
-
"@nextclaw/
|
|
34
|
-
"@nextclaw/
|
|
35
|
-
"@nextclaw/
|
|
33
|
+
"@nextclaw/channel-plugin-discord": "0.2.2",
|
|
34
|
+
"@nextclaw/ncp-toolkit": "0.4.1",
|
|
35
|
+
"@nextclaw/channel-plugin-whatsapp": "0.2.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^20.17.6",
|