nexus-channel 1.6.6 → 1.7.1

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.
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.nexusSetupPlugin = void 0;
4
4
  const core_1 = require("openclaw/plugin-sdk/core");
5
5
  const channel_setup_1 = require("openclaw/plugin-sdk/channel-setup");
6
- const CHANNEL = 'nexus-channel';
6
+ const CHANNEL = 'nexus';
7
7
  const DEFAULT_ACCOUNT = 'default';
8
- const DEFAULT_WS = 'ws://127.0.0.1:3001';
8
+ const DEFAULT_WS = 'ws://111.231.105.183:3001';
9
9
  function normalizeSetupInput(input) {
10
10
  const rawUrl = input?.httpUrl || input?.hub2dUrl || DEFAULT_WS;
11
11
  const wsUrl = rawUrl.startsWith('ws') ? rawUrl : rawUrl.replace(/^http/, 'ws');
12
12
  return {
13
13
  hub2dUrl: wsUrl,
14
14
  roomId: input?.roomId || 'general',
15
- agentName: input?.agentName || 'serina',
15
+ agentName: input?.agentName || '',
16
16
  nexusApiKey: input?.token || input?.nexusApiKey || '',
17
17
  longTextThreshold: Number(input?.longTextThreshold || 4000),
18
18
  contextInjection: input?.contextInjection || 'P0',
@@ -22,7 +22,7 @@ function normalizeSetupInput(input) {
22
22
  const optionalSurface = (0, channel_setup_1.createOptionalChannelSetupSurface)({
23
23
  channel: CHANNEL,
24
24
  label: 'Nexus Hub 2.0',
25
- docsPath: '/channels/nexus-channel',
25
+ docsPath: '/channels/nexus',
26
26
  });
27
27
  const nexusSetupPlugin = {
28
28
  id: CHANNEL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexus-channel",
3
- "version": "1.6.6",
3
+ "version": "1.7.1",
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",
@@ -15,16 +15,16 @@
15
15
  "test:src": "npm run build && npm run test",
16
16
  "prepublishOnly": "npm run build"
17
17
  },
18
- "dependencies": {
19
- "ws": "^8.19.0"
20
- },
18
+ "dependencies": {},
21
19
  "devDependencies": {
22
20
  "@types/node": "^20.11.0",
23
21
  "@types/ws": "^8.5.12",
24
- "typescript": "^5.3.3"
22
+ "typescript": "^5.3.3",
23
+ "ws": "^8.19.0"
25
24
  },
26
25
  "peerDependencies": {
27
- "openclaw": "*"
26
+ "openclaw": "*",
27
+ "ws": "^8.0.0"
28
28
  },
29
29
  "openclaw": {
30
30
  "extensions": [