openclawsetup 2.8.14 → 2.8.15
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/bin/cli.mjs +3 -6
- package/package.json +1 -1
package/bin/cli.mjs
CHANGED
|
@@ -969,10 +969,7 @@ function getDashboardToken(config) {
|
|
|
969
969
|
}
|
|
970
970
|
|
|
971
971
|
function maskToken(token = '') {
|
|
972
|
-
|
|
973
|
-
const text = String(token);
|
|
974
|
-
if (text.length <= 8) return '***';
|
|
975
|
-
return `${text.slice(0, 4)}...${text.slice(-4)}`;
|
|
972
|
+
return token;
|
|
976
973
|
}
|
|
977
974
|
|
|
978
975
|
function parseStatusOutput(statusOutput) {
|
|
@@ -1878,7 +1875,7 @@ function buildOnboardArgsFromHelp(helpText, options) {
|
|
|
1878
1875
|
return { args, enabled, autoCapable };
|
|
1879
1876
|
}
|
|
1880
1877
|
|
|
1881
|
-
function getOnboardCommand(cliName, onboardArgs = ['onboard'
|
|
1878
|
+
function getOnboardCommand(cliName, onboardArgs = ['onboard']) {
|
|
1882
1879
|
if (platform() === 'win32') {
|
|
1883
1880
|
return { file: 'cmd.exe', args: ['/c', cliName, ...onboardArgs] };
|
|
1884
1881
|
}
|
|
@@ -2378,7 +2375,7 @@ function showDashboardAccessInfo(cliName) {
|
|
|
2378
2375
|
console.log(colors.gray(' 将 "bind": "loopback" 改为 "bind": "all"'));
|
|
2379
2376
|
console.log(colors.gray(` 2. 在云服务器控制台开放端口 ${port}`));
|
|
2380
2377
|
console.log(colors.gray(` 3. 重启 Gateway:${activeCli} gateway restart`));
|
|
2381
|
-
console.log(colors.gray(` 4. 访问:http://${serverIp}:${port}/?token
|
|
2378
|
+
console.log(colors.gray(` 4. 访问:http://${serverIp}:${port}/?token=${tokenRaw}`));
|
|
2382
2379
|
} else {
|
|
2383
2380
|
console.log(colors.cyan('\nDashboard 访问:'));
|
|
2384
2381
|
console.log(` ${colors.yellow(dashboardUrl)}`);
|