pinggy 0.6.3 → 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.
package/dist/index.d.cts CHANGED
@@ -747,7 +747,7 @@ interface DeviceAgentError {
747
747
  message: string;
748
748
  }
749
749
  /**
750
- * The device agent the daemon runs for `pinggy device connect -b`. It never carries the token: any
750
+ * The device agent the daemon runs for `pinggy device connect`. It never carries the token: any
751
751
  * local user can reach the IPC port.
752
752
  */
753
753
  interface DeviceAgentStatus {
package/dist/index.d.ts CHANGED
@@ -747,7 +747,7 @@ interface DeviceAgentError {
747
747
  message: string;
748
748
  }
749
749
  /**
750
- * The device agent the daemon runs for `pinggy device connect -b`. It never carries the token: any
750
+ * The device agent the daemon runs for `pinggy device connect`. It never carries the token: any
751
751
  * local user can reach the IPC port.
752
752
  */
753
753
  interface DeviceAgentStatus {
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  initiateRemoteManagement,
12
12
  isDaemonRunning,
13
13
  startRemoteManagement
14
- } from "./chunk-GESMZQHI.js";
14
+ } from "./chunk-CIOYQU7F.js";
15
15
  import {
16
16
  DeviceAgentState
17
17
  } from "./chunk-7EQKHVQX.js";
@@ -141,7 +141,7 @@ async function verifyAndLoad() {
141
141
  process.exit(1);
142
142
  }
143
143
  }
144
- await import("./main-M6MACH7D.js");
144
+ await import("./main-JRVKAIHH.js");
145
145
  }
146
146
  verifyAndLoad().catch((err) => {
147
147
  printer_default.fatal(`Failed to start CLI:, ${err}`);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runDaemonChild
4
- } from "./chunk-TG6LBCPG.js";
4
+ } from "./chunk-UVJYL2ZN.js";
5
5
  import {
6
6
  RemoteManagementUnauthorizedError,
7
7
  TunnelOperations,
@@ -13,7 +13,7 @@ import {
13
13
  getRemoteManagementState,
14
14
  initiateRemoteManagement,
15
15
  isDaemonRunning
16
- } from "./chunk-GESMZQHI.js";
16
+ } from "./chunk-CIOYQU7F.js";
17
17
  import "./chunk-PD7HXVQ3.js";
18
18
  import {
19
19
  DaemonHost
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinggy",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "description": "Create secure, shareable tunnels to your localhost and manage them from the command line. ",
@@ -49,10 +49,21 @@
49
49
  "node_modules/blessed/lib/**/*",
50
50
  "node_modules/blessed/usr/**/*",
51
51
  "dist/workers/**/*"
52
- ]
52
+ ],
53
+ "ignore": [
54
+ "**/node_modules/node-pty/prebuilds/**/*.pdb",
55
+ "**/node_modules/node-pty/{deps,src,third_party}/**",
56
+ "**/node_modules/@pinggy/pinggy/lib/libcrypto.dylib",
57
+ "**/node_modules/@pinggy/pinggy/lib/libssl.dylib",
58
+ "**/node_modules/node-gyp/**",
59
+ "**/node_modules/@mapbox/node-pre-gyp/**",
60
+ "**/node_modules/zod/src/**",
61
+ "**/node_modules/zod/v3/**"
62
+ ],
63
+ "compress": "Brotli"
53
64
  },
54
65
  "dependencies": {
55
- "@pinggy/pinggy": "^0.5.3",
66
+ "@pinggy/pinggy": "^0.5.4",
56
67
  "@xterm/addon-serialize": "^0.14.0",
57
68
  "@xterm/headless": "^6.0.0",
58
69
  "blessed": "^0.1.81",
@@ -214,7 +214,8 @@ function Install-Pinggy {
214
214
  }
215
215
  }
216
216
 
217
- # Runs the installed file by its full path, so an npm-installed pinggy earlier on PATH does not answer.
217
+ # Runs the installed file by its full path, so an npm-installed pinggy earlier on PATH does not answer. -b is the
218
+ # default now. It is passed anyway, so an older pinggy the user kept runs the agent in its daemon too.
218
219
  function Invoke-DeviceLogin {
219
220
  $loginArguments = @('device', 'login')
220
221
  if ($env:PINGGY_MANAGE) { $loginArguments += @('--manage', $env:PINGGY_MANAGE) }
@@ -226,13 +227,13 @@ function Install-Pinggy {
226
227
  return
227
228
  }
228
229
  Write-Host ''
229
- & $installPath @loginArguments
230
+ & $installPath @loginArguments -b
230
231
  }
231
232
 
232
- # Runs the installed file by its full path, as Invoke-DeviceLogin does. connect reads DEVICE_AGENT_TOKEN from
233
- # the environment it inherits, and reads no key, so it runs the same with no console.
233
+ # Runs the installed file by its full path, with -b, as Invoke-DeviceLogin does. connect reads DEVICE_AGENT_TOKEN
234
+ # from the environment it inherits, and reads no key, so it runs the same with no console.
234
235
  function Invoke-DeviceConnect {
235
- $connectArguments = @('device', 'connect')
236
+ $connectArguments = @('device', 'connect', '-b')
236
237
  if ($env:PINGGY_MANAGE) { $connectArguments += @('--manage', $env:PINGGY_MANAGE) }
237
238
  Write-Host ''
238
239
  & $installPath @connectArguments
@@ -335,17 +335,18 @@ add_link_dir_to_rc_file() {
335
335
 
336
336
  # Runs the installed file by its full path, so an npm-installed pinggy earlier on PATH does not answer. connect reads
337
337
  # DEVICE_AGENT_TOKEN from the environment this script passes on, and reads no key, so it runs the same with no
338
- # terminal.
338
+ # terminal. -b is the default now. It is passed anyway, so an older pinggy the user kept runs the agent in its daemon
339
+ # too.
339
340
  connect_with_device_token() {
340
341
  export DEVICE_AGENT_TOKEN
341
342
  say ""
342
343
  if [ -n "${PINGGY_MANAGE:-}" ]; then
343
- exec "$INSTALL_PATH" device connect --manage "$PINGGY_MANAGE" </dev/null
344
+ exec "$INSTALL_PATH" device connect -b --manage "$PINGGY_MANAGE" </dev/null
344
345
  fi
345
- exec "$INSTALL_PATH" device connect </dev/null
346
+ exec "$INSTALL_PATH" device connect -b </dev/null
346
347
  }
347
348
 
348
- # Runs the installed file by its full path, so an npm-installed pinggy earlier on PATH does not answer.
349
+ # Runs the installed file by its full path, so an npm-installed pinggy earlier on PATH does not answer. -b as above.
349
350
  start_sign_in() {
350
351
  if [ -n "${PINGGY_MANAGE:-}" ]; then
351
352
  login_command="pinggy device login --manage $PINGGY_MANAGE"
@@ -361,9 +362,9 @@ start_sign_in() {
361
362
 
362
363
  say ""
363
364
  if [ -n "${PINGGY_MANAGE:-}" ]; then
364
- exec "$INSTALL_PATH" device login --manage "$PINGGY_MANAGE" </dev/tty
365
+ exec "$INSTALL_PATH" device login -b --manage "$PINGGY_MANAGE" </dev/tty
365
366
  fi
366
- exec "$INSTALL_PATH" device login </dev/tty
367
+ exec "$INSTALL_PATH" device login -b </dev/tty
367
368
  }
368
369
 
369
370
  main() {