conductor-remote 1.23.0 → 1.24.0

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.js CHANGED
@@ -60,6 +60,8 @@ function usage() {
60
60
  ' conductor-remote [start] run the relay (default)',
61
61
  ' conductor-remote service <subcommand> manage the login LaunchAgent',
62
62
  ' install | uninstall | restart | status',
63
+ ' conductor-remote nosleep [duration] keep this Mac awake (incl. lid-closed) until',
64
+ ' Ctrl-C or the duration (e.g. 1h, 90m); needs sudo',
63
65
  ' conductor-remote --version print the installed version',
64
66
  '',
65
67
  'Install flags (each also settable via the env var in [brackets]):',
@@ -87,6 +89,11 @@ switch (cmd) {
87
89
  process.argv = [process.argv[0], process.argv[1], ...rest]
88
90
  await import(resolveEntry('../dist-node/scripts/service.js', '../scripts/service.ts'))
89
91
  break
92
+ case 'nosleep':
93
+ // nosleep.ts reads its optional duration from argv[2]; re-shape argv so `nosleep 1h` → `1h`.
94
+ process.argv = [process.argv[0], process.argv[1], ...rest]
95
+ await import(resolveEntry('../dist-node/scripts/nosleep.js', '../scripts/nosleep.ts'))
96
+ break
90
97
  case '-v':
91
98
  case '--version':
92
99
  case 'version':