termbeam 1.10.1 → 1.10.3

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/termbeam.js CHANGED
@@ -8,7 +8,7 @@ if (subcommand === 'service') {
8
8
  console.error(err.message);
9
9
  process.exit(1);
10
10
  });
11
- } else if (subcommand === 'resume') {
11
+ } else if (subcommand === 'resume' || subcommand === 'attach') {
12
12
  const { resume } = require('../src/resume');
13
13
  resume(process.argv.slice(3)).catch((err) => {
14
14
  console.error(err.message);
@@ -129,7 +129,7 @@ if (subcommand === 'service') {
129
129
  const displayHost = existing.host === '127.0.0.1' ? 'localhost' : existing.host;
130
130
  console.error(
131
131
  `TermBeam is already running on http://${displayHost}:${existing.port}\n` +
132
- 'Use "termbeam resume" to reconnect, "termbeam list" to list sessions,\n' +
132
+ 'Use "termbeam resume" (or "termbeam attach") to reconnect, "termbeam list" to list sessions,\n' +
133
133
  'or "termbeam --force" to stop the existing server and start a new one.',
134
134
  );
135
135
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termbeam",
3
- "version": "1.10.1",
3
+ "version": "1.10.3",
4
4
  "description": "Beam your terminal to any device — mobile-optimized web terminal with multi-session support",
5
5
  "main": "src/server.js",
6
6
  "bin": {
@@ -42,7 +42,7 @@
42
42
  [data-theme='night-owl'] { --key-bg: #1d3b53; --key-border: #264863; --key-shadow: rgba(0, 0, 0, 0.4); --key-special-bg: #0d2a45; }
43
43
  @font-face {
44
44
  font-family: 'NerdFont';
45
- src: url('https://cdn.jsdelivr.net/gh/ryanoasis/nerd-fonts@latest/patched-fonts/JetBrainsMono/Ligatures/Regular/JetBrainsMonoNerdFont-Regular.ttf')
45
+ src: url('https://cdn.jsdelivr.net/gh/ryanoasis/nerd-fonts@v3.4.0/patched-fonts/JetBrainsMono/Ligatures/Regular/JetBrainsMonoNerdFont-Regular.ttf')
46
46
  format('truetype');
47
47
  font-weight: normal;
48
48
  font-style: normal;
@@ -50,7 +50,7 @@
50
50
  }
51
51
  @font-face {
52
52
  font-family: 'NerdFont';
53
- src: url('https://cdn.jsdelivr.net/gh/ryanoasis/nerd-fonts@latest/patched-fonts/JetBrainsMono/Ligatures/Bold/JetBrainsMonoNerdFont-Bold.ttf')
53
+ src: url('https://cdn.jsdelivr.net/gh/ryanoasis/nerd-fonts@v3.4.0/patched-fonts/JetBrainsMono/Ligatures/Bold/JetBrainsMonoNerdFont-Bold.ttf')
54
54
  format('truetype');
55
55
  font-weight: bold;
56
56
  font-style: normal;
@@ -2378,7 +2378,7 @@
2378
2378
  // ===== Font Loading (non-blocking) =====
2379
2379
  const nerdFont = new FontFace(
2380
2380
  'NerdFont',
2381
- "url('https://cdn.jsdelivr.net/gh/ryanoasis/nerd-fonts@latest/patched-fonts/JetBrainsMono/Ligatures/Regular/JetBrainsMonoNerdFont-Regular.ttf')",
2381
+ "url('https://cdn.jsdelivr.net/gh/ryanoasis/nerd-fonts@v3.4.0/patched-fonts/JetBrainsMono/Ligatures/Regular/JetBrainsMonoNerdFont-Regular.ttf')",
2382
2382
  );
2383
2383
  nerdFont
2384
2384
  .load()
package/src/cli.js CHANGED
@@ -10,7 +10,7 @@ termbeam — Beam your terminal to any device
10
10
 
11
11
  Usage:
12
12
  termbeam [options] [shell] [args...]
13
- termbeam resume [name] [options] Reconnect to a running session
13
+ termbeam resume [name] [options] Reconnect to a running session (alias: attach)
14
14
  termbeam list List running sessions
15
15
  termbeam service <action> Manage as a background service (PM2)
16
16
 
@@ -54,6 +54,7 @@ Examples:
54
54
  termbeam --interactive Guided setup wizard
55
55
  termbeam service install Set up as background service (PM2)
56
56
  termbeam resume Reconnect to an active session
57
+ termbeam attach my-session Attach to a named session (alias for resume)
57
58
  termbeam list List all active sessions
58
59
 
59
60
  Environment:
package/src/resume.js CHANGED
@@ -155,7 +155,7 @@ function detachKeyLabel(key) {
155
155
 
156
156
  function printResumeHelp() {
157
157
  console.log(`
158
- ${bold('termbeam resume')} — Reconnect to a running session
158
+ ${bold('termbeam resume')} (alias: ${bold('attach')}) — Reconnect to a running session
159
159
 
160
160
  ${bold('Usage:')}
161
161
  termbeam resume [name] [options]
@@ -243,7 +243,7 @@ async function resume(args) {
243
243
  const { host, port, password, sessions, opts } = conn;
244
244
 
245
245
  if (sessions.length === 0) {
246
- console.error(red(' No active sessions on the server.'));
246
+ console.error(red(` Connected to server on ${conn.displayUrl} — no active sessions.`));
247
247
  process.exit(1);
248
248
  }
249
249
 
@@ -345,7 +345,7 @@ async function list() {
345
345
  }
346
346
 
347
347
  if (sessions.length === 0) {
348
- console.log(dim(' No active sessions.'));
348
+ console.log(dim(` Connected to server on ${displayUrl} — no active sessions.`));
349
349
  return;
350
350
  }
351
351
 
package/src/server.js CHANGED
@@ -266,6 +266,12 @@ function createTermBeamServer(overrides = {}) {
266
266
  console.log(` Scan the QR code or open: ${bl}${qrDisplayUrl}${rs}`);
267
267
  if (config.password) process.stdout.write(` Password: ${gn}${config.password}${rs}\n`);
268
268
  console.log('');
269
+ console.log(`${_dm} From another terminal:${rs}`);
270
+ console.log(`${_dm} termbeam list List active sessions${rs}`);
271
+ console.log(
272
+ `${_dm} termbeam resume Attach to a session (or: termbeam attach)${rs}`,
273
+ );
274
+ console.log('');
269
275
 
270
276
  resolve({ url: `http://localhost:${actualPort}`, defaultId });
271
277
  });
package/src/service.js CHANGED
@@ -460,9 +460,13 @@ async function actionInstall() {
460
460
  }
461
461
 
462
462
  console.log(dim('\nUseful commands:'));
463
- console.log(` ${cyan('termbeam service status')} Check service status`);
464
- console.log(` ${cyan('termbeam service logs')} — View logs`);
465
- console.log(` ${cyan('termbeam service restart')} Restart service`);
463
+ console.log(` ${cyan('termbeam list')} List active sessions`);
464
+ console.log(
465
+ ` ${cyan('termbeam resume')} Attach to a session (or: termbeam attach)`,
466
+ );
467
+ console.log(` ${cyan('termbeam service status')} — Check service status`);
468
+ console.log(` ${cyan('termbeam service logs')} — View logs`);
469
+ console.log(` ${cyan('termbeam service restart')} — Restart service`);
466
470
  console.log(` ${cyan('termbeam service uninstall')} — Remove service\n`);
467
471
  }
468
472