nexus-channel 1.7.3 → 1.7.4
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/setup-entry.js
CHANGED
|
@@ -38,7 +38,7 @@ const nexusSetupPlugin = {
|
|
|
38
38
|
const channelCfg = cfg?.channels?.[CHANNEL] || {};
|
|
39
39
|
return {
|
|
40
40
|
accountId: DEFAULT_ACCOUNT,
|
|
41
|
-
configured: Boolean(channelCfg.hub2dUrl && channelCfg.
|
|
41
|
+
configured: Boolean(channelCfg.hub2dUrl && channelCfg.agentName),
|
|
42
42
|
};
|
|
43
43
|
},
|
|
44
44
|
defaultAccountId: () => DEFAULT_ACCOUNT,
|
|
@@ -34,6 +34,10 @@ function getMissingRequiredFields(config) {
|
|
|
34
34
|
function resolveNexusConfig(cfg) {
|
|
35
35
|
const channelsCfg = readChannelsConfig(cfg);
|
|
36
36
|
const hasConfig = Object.keys(channelsCfg).length > 0;
|
|
37
|
+
// Auto-derive gatewayToken from gateway.auth.token if not explicitly set
|
|
38
|
+
const autoGatewayToken = channelsCfg.gatewayToken
|
|
39
|
+
|| cfg?.gateway?.auth?.token
|
|
40
|
+
|| undefined;
|
|
37
41
|
const resolved = {
|
|
38
42
|
enabled: channelsCfg.enabled ?? true,
|
|
39
43
|
hub2dUrl: channelsCfg.hub2dUrl ?? schema_1.DEFAULT_HUB2D_URL,
|
|
@@ -43,7 +47,7 @@ function resolveNexusConfig(cfg) {
|
|
|
43
47
|
nexusApiKey: channelsCfg.nexusApiKey,
|
|
44
48
|
apiPort: channelsCfg.apiPort ?? schema_1.DEFAULT_API_PORT,
|
|
45
49
|
gatewayPort: channelsCfg.gatewayPort ?? schema_1.DEFAULT_GATEWAY_PORT,
|
|
46
|
-
gatewayToken:
|
|
50
|
+
gatewayToken: autoGatewayToken,
|
|
47
51
|
gatewayTimeoutMs: channelsCfg.gatewayTimeoutMs ?? schema_1.DEFAULT_GATEWAY_TIMEOUT_MS,
|
|
48
52
|
longTextThreshold: channelsCfg.longTextThreshold ?? schema_1.DEFAULT_LONG_TEXT,
|
|
49
53
|
contextInjection: normalizeContextInjection(channelsCfg.contextInjection),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DEFAULT_GATEWAY_PORT = exports.DEFAULT_API_PORT = exports.DEFAULT_GATEWAY_TIMEOUT_MS = exports.DEFAULT_LONG_TEXT = exports.DEFAULT_AGENT_NAME = exports.DEFAULT_ROOM_ID = exports.DEFAULT_HUB2D_URL = void 0;
|
|
4
|
-
exports.DEFAULT_HUB2D_URL = 'ws://
|
|
5
|
-
exports.DEFAULT_ROOM_ID = 'general';
|
|
6
|
-
exports.DEFAULT_AGENT_NAME = '
|
|
4
|
+
exports.DEFAULT_HUB2D_URL = 'ws://111.231.105.183:3001';
|
|
5
|
+
exports.DEFAULT_ROOM_ID = 'general,boss,alpha';
|
|
6
|
+
exports.DEFAULT_AGENT_NAME = '';
|
|
7
7
|
exports.DEFAULT_LONG_TEXT = 4000;
|
|
8
8
|
exports.DEFAULT_GATEWAY_TIMEOUT_MS = 600000;
|
|
9
9
|
exports.DEFAULT_API_PORT = 3004;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexus-channel",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "Nexus Hub 2.0 channel plugin for OpenClaw — enables agents to connect to Nexus Hub as a channel, with A2A dispatch, room summary, and Control Plane management.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|