@nextclaw/server 0.10.48 → 0.10.50
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 +13 -13
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -2639,15 +2639,9 @@ function applyAuthorizedChannelAuthResult(params) {
|
|
|
2639
2639
|
const nextConfig = enablePluginInConfig(
|
|
2640
2640
|
{
|
|
2641
2641
|
...currentConfig,
|
|
2642
|
-
|
|
2643
|
-
...currentConfig.
|
|
2644
|
-
|
|
2645
|
-
...currentConfig.plugins.entries ?? {},
|
|
2646
|
-
[params.binding.pluginId]: {
|
|
2647
|
-
...currentConfig.plugins.entries?.[params.binding.pluginId] ?? {},
|
|
2648
|
-
config: params.result.pluginConfig
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2642
|
+
channels: {
|
|
2643
|
+
...currentConfig.channels,
|
|
2644
|
+
[params.binding.channelId]: params.result.pluginConfig
|
|
2651
2645
|
}
|
|
2652
2646
|
},
|
|
2653
2647
|
params.binding.pluginId
|
|
@@ -2661,11 +2655,14 @@ async function startChannelAuth(params) {
|
|
|
2661
2655
|
return null;
|
|
2662
2656
|
}
|
|
2663
2657
|
const config = loadConfigOrDefault(params.configPath);
|
|
2658
|
+
const configView = getProjectedConfigView(config, {
|
|
2659
|
+
pluginChannelBindings: params.bindings
|
|
2660
|
+
});
|
|
2664
2661
|
const result = await start({
|
|
2665
|
-
cfg:
|
|
2662
|
+
cfg: configView,
|
|
2666
2663
|
pluginId: binding.pluginId,
|
|
2667
2664
|
channelId: binding.channelId,
|
|
2668
|
-
pluginConfig: clonePluginConfig(
|
|
2665
|
+
pluginConfig: clonePluginConfig(configView.channels?.[binding.channelId]),
|
|
2669
2666
|
accountId: params.request.accountId?.trim() || null,
|
|
2670
2667
|
baseUrl: params.request.baseUrl?.trim() || null
|
|
2671
2668
|
});
|
|
@@ -2678,11 +2675,14 @@ async function pollChannelAuth(params) {
|
|
|
2678
2675
|
return null;
|
|
2679
2676
|
}
|
|
2680
2677
|
const config = loadConfigOrDefault(params.configPath);
|
|
2678
|
+
const configView = getProjectedConfigView(config, {
|
|
2679
|
+
pluginChannelBindings: params.bindings
|
|
2680
|
+
});
|
|
2681
2681
|
const result = await poll({
|
|
2682
|
-
cfg:
|
|
2682
|
+
cfg: configView,
|
|
2683
2683
|
pluginId: binding.pluginId,
|
|
2684
2684
|
channelId: binding.channelId,
|
|
2685
|
-
pluginConfig: clonePluginConfig(
|
|
2685
|
+
pluginConfig: clonePluginConfig(configView.channels?.[binding.channelId]),
|
|
2686
2686
|
sessionId: params.sessionId
|
|
2687
2687
|
});
|
|
2688
2688
|
if (!result) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/server",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.50",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Nextclaw UI/API server.",
|
|
6
6
|
"type": "module",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"@hono/node-server": "^1.13.3",
|
|
19
19
|
"hono": "^4.6.2",
|
|
20
20
|
"ws": "^8.18.0",
|
|
21
|
-
"@nextclaw/mcp": "0.1.
|
|
22
|
-
"@nextclaw/
|
|
21
|
+
"@nextclaw/mcp": "0.1.46",
|
|
22
|
+
"@nextclaw/openclaw-compat": "0.3.27",
|
|
23
23
|
"@nextclaw/ncp-http-agent-server": "0.3.2",
|
|
24
|
-
"@nextclaw/
|
|
25
|
-
"@nextclaw/runtime": "0.2.
|
|
26
|
-
"@nextclaw/core": "0.11.
|
|
24
|
+
"@nextclaw/ncp": "0.3.2",
|
|
25
|
+
"@nextclaw/runtime": "0.2.15",
|
|
26
|
+
"@nextclaw/core": "0.11.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^20.17.6",
|