@mmmbuto/nexuscli 0.6.2 → 0.6.4

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.
@@ -59,7 +59,7 @@
59
59
 
60
60
  <!-- Prevent Scaling on iOS -->
61
61
  <meta name="format-detection" content="telephone=no" />
62
- <script type="module" crossorigin src="/assets/index-DaG2hvsF.js"></script>
62
+ <script type="module" crossorigin src="/assets/index-DebTxlBL.js"></script>
63
63
  <link rel="stylesheet" crossorigin href="/assets/index-Bn_l1e6e.css">
64
64
  </head>
65
65
  <body>
@@ -191,7 +191,8 @@ async function setupTermux() {
191
191
  } catch {
192
192
  config = { server: { port: 41800 } };
193
193
  }
194
- const webPort = config.server?.port || 41800;
194
+ const httpPort = config.server?.port || 41800;
195
+ const httpsPort = parseInt(httpPort) + 1;
195
196
 
196
197
  // Output connection info
197
198
  console.log(chalk.bold('╔═══════════════════════════════════════════════════╗'));
@@ -201,10 +202,14 @@ async function setupTermux() {
201
202
  console.log(chalk.cyan(' SSH:'));
202
203
  console.log(chalk.white(` ssh ${user}@${ip} -p ${sshPort}`));
203
204
  console.log('');
204
- console.log(chalk.cyan(' NexusCLI:'));
205
- console.log(chalk.white(` https://${ip}:${webPort}`));
205
+ console.log(chalk.cyan(' NexusCLI (local):'));
206
+ console.log(chalk.white(` http://localhost:${httpPort}`));
207
+ console.log('');
208
+ console.log(chalk.cyan(' NexusCLI (remote + voice):'));
209
+ console.log(chalk.white(` https://${ip}:${httpsPort}`));
206
210
  console.log('');
207
211
  console.log(chalk.gray(' Note: Set password with: passwd'));
212
+ console.log(chalk.gray(' Note: HTTPS uses self-signed cert (accept in browser)'));
208
213
  console.log('');
209
214
 
210
215
  process.exit(0);
package/lib/cli/start.js CHANGED
@@ -181,7 +181,10 @@ async function start(options) {
181
181
  const port = options.port || config.server.port;
182
182
  config.server.port = port;
183
183
 
184
- const url = `http://localhost:${port}`;
184
+ const httpPort = port;
185
+ const httpsPort = parseInt(port) + 1;
186
+ const httpUrl = `http://localhost:${httpPort}`;
187
+ const httpsUrl = `https://localhost:${httpsPort}`;
185
188
 
186
189
  // Foreground mode (--foreground flag)
187
190
  if (options.foreground) {
@@ -198,7 +201,9 @@ async function start(options) {
198
201
  console.log(chalk.green(` ✓ Server started (PID: ${pid})`));
199
202
  console.log(chalk.gray(` Logs: ${PATHS.SERVER_LOG}`));
200
203
  console.log('');
201
- console.log(chalk.bold(` ${chalk.cyan(url)}`));
204
+ console.log(chalk.bold(' Network:'));
205
+ console.log(` HTTP: ${chalk.cyan(httpUrl)} (local)`);
206
+ console.log(` HTTPS: ${chalk.cyan(httpsUrl)} (remote + voice)`);
202
207
  console.log('');
203
208
 
204
209
  // Ask to open browser (unless --no-browser)
@@ -206,7 +211,7 @@ async function start(options) {
206
211
  const shouldOpen = await askYesNo(` Open browser? ${chalk.gray('(Y/n)')} `);
207
212
 
208
213
  if (shouldOpen) {
209
- const opened = openBrowser(url);
214
+ const opened = openBrowser(httpUrl);
210
215
  if (opened) {
211
216
  console.log(chalk.green(' ✓ Browser opened'));
212
217
  } else {
package/lib/cli/status.js CHANGED
@@ -121,7 +121,9 @@ async function status() {
121
121
  console.log(chalk.bold(`║ Server: ${chalk.red('✗ Stopped')}`));
122
122
  }
123
123
 
124
- console.log(chalk.bold(`║ Port: ${chalk.white(config.server.port)}`));
124
+ const httpPort = config.server.port;
125
+ const httpsPort = parseInt(config.server.port) + 1;
126
+ console.log(chalk.bold(`║ Ports: HTTP ${chalk.white(httpPort)} / HTTPS ${chalk.white(httpsPort)}`));
125
127
  console.log(chalk.bold('║'));
126
128
 
127
129
  // Engines
@@ -183,9 +185,10 @@ async function status() {
183
185
  console.log(chalk.bold('╚═══════════════════════════════════════════╝'));
184
186
  console.log('');
185
187
 
186
- // URL if running
188
+ // URLs if running
187
189
  if (serverStatus.running) {
188
- console.log(chalk.cyan(` http://localhost:${config.server.port}`));
190
+ console.log(` HTTP: ${chalk.cyan(`http://localhost:${httpPort}`)}`);
191
+ console.log(` HTTPS: ${chalk.cyan(`https://localhost:${httpsPort}`)} (remote + voice)`);
189
192
  console.log('');
190
193
  }
191
194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmmbuto/nexuscli",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "NexusCLI - TRI CLI Control Plane (Claude/Codex/Gemini)",
5
5
  "main": "lib/server/server.js",
6
6
  "bin": {