@thinremote/thinr-cli 1.0.2-alpha.1 → 1.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.2] - 2025-07-21
4
+
5
+ ### Fixed
6
+
7
+ - Fixed import on proxy command
8
+ - Updated commands in readme
9
+
10
+ ### Removed
11
+
12
+ - Removed targetSecure option from device proxy command
13
+ - Avoid deleting token from server on logout
14
+
3
15
  ## [1.0.1] - 2025-07-21
4
16
 
5
17
  ### Fixed
@@ -19,5 +31,6 @@
19
31
  - Property listing and retrieval
20
32
  - Device resource listing and execution
21
33
 
34
+ [1.0.2]: https://github.com/Thin-Remote/thinr-cli/compare/1.0.1...1.0.2
22
35
  [1.0.1]: https://github.com/Thin-Remote/thinr-cli/compare/1.0.0...1.0.1
23
36
  [1.0.0]: https://github.com/Thin-Remote/thinr-cli/tag/1.0.0
package/README.md CHANGED
@@ -65,26 +65,22 @@ thinr device <deviceId> tls <target> [options]
65
65
  thinr device <deviceId> http <taget> [options]
66
66
  ```
67
67
 
68
- The target being the remote port on the device (defaults: tcp: 22, http: 80, tls: 443).
68
+ The target being the remote address and port on the device (defaults: tcp: 22, http: 80, tls: 443, and localhost for the target address).
69
69
 
70
70
  Options:
71
71
  - `-w, --web`: Create an HTTP proxy for web interface instead of TCP
72
- - `--no-secure`: Do not use SSL for the target connection
73
72
  - `--no-open`: Do not open browser automatically (web mode only)
74
73
 
75
74
  Examples:
76
75
  ```bash
77
76
  # Create a TCP proxy to SSH
78
- thinr proxy RevPi20679
79
-
80
- # Create a web interface proxy
81
- thinr proxy RevPi20679 --web
77
+ thinr device RevPi20679 tcp 22
82
78
 
83
79
  # Create a proxy to a specific port with SSL
84
- thinr proxy RevPi20679 --remote-port 8080 --ssl
80
+ thinr device RevPi20679 http 8080
85
81
 
86
82
  # Create a proxy to a specific address
87
- thinr proxy RevPi20679 --remote-address 192.168.1.100
83
+ thinr device RevPi20679 http http://192.168.1.45:8080
88
84
  ```
89
85
 
90
86
  ##### Status
@@ -92,7 +88,7 @@ thinr proxy RevPi20679 --remote-address 192.168.1.100
92
88
  Check the connection status of a device:
93
89
 
94
90
  ```bash
95
- thinr status <deviceId> [options]
91
+ thinr device <deviceId> status [options]
96
92
  ```
97
93
 
98
94
  Options:
@@ -118,7 +114,7 @@ Options:
118
114
 
119
115
  ##### Resource
120
116
 
121
- Get the avaiable resources of a device:
117
+ Get the available resources of a device:
122
118
 
123
119
  ```bash
124
120
  thinr device <deviceId> resource [options]
@@ -44,7 +44,6 @@ export function deviceCommand(program) {
44
44
  port: null,
45
45
  json: false,
46
46
  openBrowser: true,
47
- targetSecure: true,
48
47
  inputs: {},
49
48
  field: "",
50
49
  };
@@ -63,8 +62,6 @@ export function deviceCommand(program) {
63
62
  parsedOptions.inputs[inputPair[0]] = inputPair[1];
64
63
  } else if (argv[i] === '-f' || argv[i] === '--field') {
65
64
  parsedOptions.field = argv[i + 1];
66
- } else if (argv[i] === '--no-secure') {
67
- parsedOptions.targetSecure = false;
68
65
  } else if (argv[i] === '-h' || argv[i] === '--help') {
69
66
  printHelp(deviceId);
70
67
  return;
@@ -252,7 +249,6 @@ Arguments:
252
249
 
253
250
  Options (for proxy commands):
254
251
  -p, --port <port> Local port to use (default: random)
255
- --no-secure Do not use SSL/TLS for the target
256
252
  --no-open Do not open browser (http only)
257
253
 
258
254
  Options (for status command):
@@ -21,10 +21,6 @@ export function logoutCommand(program) {
21
21
  const spinner = ora('Removing configuration...').start();
22
22
 
23
23
  try {
24
- // Delete token from server first
25
- spinner.text = 'Deleting token from server...';
26
- await deleteToken();
27
-
28
24
  // Delete local configuration
29
25
  spinner.text = 'Removing local configuration...';
30
26
  const success = deleteConfig();
package/lib/proxy.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import chalk from 'chalk';
2
2
  import open, { apps } from 'open';
3
+ import ora from 'ora';
3
4
  import { configExists, readConfig } from './config.js';
4
5
  import api from './api.js';
5
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinremote/thinr-cli",
3
- "version": "1.0.2-alpha.1",
3
+ "version": "1.0.2",
4
4
  "description": "CLI for ThinRemote - Remote management for IoT devices",
5
5
  "main": "bin/thinr.js",
6
6
  "bin": {