@clawchatsai/connector 0.0.57 → 0.0.59

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -747,10 +747,17 @@ async function handleSetup(token) {
747
747
  reject(new Error('Setup timed out'));
748
748
  }, 30_000);
749
749
  ws.on('open', () => {
750
+ const setupHostname = (() => { try {
751
+ return require('os').hostname();
752
+ }
753
+ catch {
754
+ return undefined;
755
+ } })();
750
756
  ws.send(JSON.stringify({
751
757
  type: 'setup',
752
758
  setupSecret: tokenData.setupSecret,
753
759
  apiKey,
760
+ hostname: setupHostname,
754
761
  }));
755
762
  });
756
763
  ws.on('message', async (raw) => {
@@ -805,8 +812,14 @@ async function handleSetup(token) {
805
812
  console.log(' ⚠️ TOTP not configured. You can set it up later with: openclaw clawchats reauth');
806
813
  console.log(' ClawChats will not allow browser connections until 2FA is enabled.');
807
814
  }
808
- console.log(' ClawChats is ready!');
809
- console.log(' Open clawchats.ai in your browser to start chatting.');
815
+ console.log(' Setup complete!');
816
+ console.log('');
817
+ console.log(' Next steps:');
818
+ console.log(' 1. Restart your gateway: openclaw gateway restart');
819
+ console.log(' (or: systemctl --user restart openclaw-gateway)');
820
+ console.log(' 2. Open ClawChats: https://app.clawchats.ai');
821
+ console.log('');
822
+ console.log(' The gateway will connect automatically after restart.');
810
823
  resolve();
811
824
  }
812
825
  else if (msg.type === 'setup-error') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawchatsai/connector",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "type": "module",
5
5
  "description": "ClawChats OpenClaw plugin — P2P tunnel + local API bridge",
6
6
  "main": "dist/index.js",