@clawchatsai/connector 0.0.57 → 0.0.58

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 +7 -0
  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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawchatsai/connector",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "type": "module",
5
5
  "description": "ClawChats OpenClaw plugin — P2P tunnel + local API bridge",
6
6
  "main": "dist/index.js",