@nextclaw/server 0.3.4 → 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 +9 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
getPackageVersion,
|
|
22
22
|
getWorkspacePathFromConfig
|
|
23
23
|
} from "@nextclaw/core";
|
|
24
|
-
import {
|
|
24
|
+
import { loadOpenClawPlugins, getPluginUiMetadataFromRegistry } from "@nextclaw/openclaw-compat";
|
|
25
25
|
var MASK_MIN_LENGTH = 8;
|
|
26
26
|
function maskApiKey(value) {
|
|
27
27
|
if (!value) {
|
|
@@ -86,7 +86,14 @@ function buildConfigMeta(config) {
|
|
|
86
86
|
}
|
|
87
87
|
function buildConfigSchemaView(config) {
|
|
88
88
|
const workspaceDir = getWorkspacePathFromConfig(config);
|
|
89
|
-
const
|
|
89
|
+
const registry = loadOpenClawPlugins({
|
|
90
|
+
config,
|
|
91
|
+
workspaceDir,
|
|
92
|
+
mode: "full",
|
|
93
|
+
reservedChannelIds: Object.keys(config.channels),
|
|
94
|
+
reservedProviderIds: PROVIDERS.map((provider) => provider.name)
|
|
95
|
+
});
|
|
96
|
+
const plugins = getPluginUiMetadataFromRegistry(registry);
|
|
90
97
|
return buildConfigSchema({ version: getPackageVersion(), plugins });
|
|
91
98
|
}
|
|
92
99
|
function loadConfigOrDefault(configPath) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/server",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Nextclaw UI/API server.",
|
|
6
6
|
"type": "module",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"@hono/node-server": "^1.13.3",
|
|
18
18
|
"hono": "^4.6.2",
|
|
19
19
|
"ws": "^8.18.0",
|
|
20
|
-
"@nextclaw/core": "^0.4.
|
|
21
|
-
"@nextclaw/openclaw-compat": "^0.1.
|
|
20
|
+
"@nextclaw/core": "^0.4.9",
|
|
21
|
+
"@nextclaw/openclaw-compat": "^0.1.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^20.17.6",
|