@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.
- package/dist/index.js +7 -0
- 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) => {
|