@lingyao037/openclaw-lingyao-cli 0.5.1 → 0.5.2

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/cli.mjs +1 -1
  2. package/package.json +1 -1
package/cli.mjs CHANGED
@@ -16,6 +16,7 @@ import { existsSync, readFileSync, writeFileSync, mkdirSync, copyFileSync, readd
16
16
  import { join, dirname } from 'path';
17
17
  import { fileURLToPath } from 'url';
18
18
  import https from 'https';
19
+ import os from 'os';
19
20
  import QRCode from 'qrcode';
20
21
 
21
22
  const __filename = fileURLToPath(import.meta.url);
@@ -445,7 +446,6 @@ class LingyaoInstaller {
445
446
 
446
447
  // Generate a stable gateway ID
447
448
  generateGatewayId() {
448
- const os = require('os');
449
449
  const host = os.hostname().split('.')[0].replace(/[^a-z0-9]/gi, '').toLowerCase();
450
450
  const suffix = Math.random().toString(36).substring(2, 8);
451
451
  return `gw_openclaw_${host}_default_${suffix}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingyao037/openclaw-lingyao-cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Lingyao Channel Plugin for OpenClaw - bidirectional sync via lingyao.live server relay",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",