bridgerator 1.0.6 → 1.0.7

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/README.md CHANGED
@@ -34,13 +34,13 @@ Details: https://bridgerator.recondeck.com/pricing
34
34
  ```powershell
35
35
  & ([scriptblock]::Create((irm https://bridgerator.recondeck.com/install.ps1)))
36
36
  ```
37
- It downloads portable Node.js LTS if missing (checksum-verified, no admin), installs this package and runs `bridgerator setup`.
37
+ It downloads portable Node.js LTS if missing (checksum-verified, no admin), installs this package and runs `bridgerator.cmd setup`.
38
38
  3. A browser tab opens with a code: check that it matches the one in PowerShell and click **Connect this computer**. Done — no key to copy.
39
39
 
40
40
  Update later with the same line (the key and folder settings are kept). Prefer to read first? Download `install.ps1`, read it, then run it.
41
41
  Servers or PCs without a browser: create a device key in your account (Add a computer → Advanced) and add `-Token <device key>` to the line.
42
42
 
43
- Manual install (PowerShell): `$env:PUPPETEER_SKIP_DOWNLOAD=1; npm install -g bridgerator`, then `bridgerator setup` (or `bridgerator setup --token <key>`). The variable skips a ~700 MB Chrome download that only PDF export needs; PDF export fetches a browser itself on first use.
43
+ Manual install (PowerShell): `$env:PUPPETEER_SKIP_DOWNLOAD=1; npm install -g bridgerator`, then `bridgerator.cmd setup` (or `bridgerator.cmd setup --token <key>`). The variable skips a ~700 MB Chrome download that only PDF export needs; PDF export fetches a browser itself on first use.
44
44
 
45
45
  Other MCP clients: server URL `https://mcp.bridgerator.recondeck.com/mcp`, OAuth sign-in.
46
46
 
@@ -76,10 +76,10 @@ Bridgerator gives its bundled engine its **own** config folder (`%APPDATA%\Bridg
76
76
  ## Commands
77
77
 
78
78
  ```
79
- bridgerator setup [--token <key> | --pair] [--allow <dir>]... [--deny <dir>]... # pair in the browser (no key yet / --pair) + config + autostart + start
80
- bridgerator run # foreground (what autostart runs)
81
- bridgerator status # config (token masked) + log tail
82
- bridgerator uninstall # stop + remove autostart
79
+ bridgerator.cmd setup [--token <key> | --pair] [--allow <dir>]... [--deny <dir>]... # pair in the browser (no key yet / --pair) + config + autostart + start
80
+ bridgerator.cmd run # foreground (what autostart runs)
81
+ bridgerator.cmd status # config (token masked) + log tail
82
+ bridgerator.cmd uninstall # stop + remove autostart
83
83
  ```
84
84
  Log: `%APPDATA%\Bridgerator\bridge.log`. Stopping the bridge cuts access immediately.
85
85
 
package/install.ps1 CHANGED
@@ -60,8 +60,8 @@ if ($major -lt 20) { throw "Node.js 20+ required, found $(& node -v). Update fro
60
60
  # The engine's PDF export brings puppeteer, whose postinstall downloads Chrome (~700 MB);
61
61
  # skipped here, PDF export fetches a browser itself the first time it is used.
62
62
  $env:PUPPETEER_SKIP_DOWNLOAD = '1'
63
- Write-Host "Installing bridgerator from $Package ..."
64
- & npm install -g $Package --no-audit --no-fund --loglevel=error
63
+ Write-Host "Installing Bridgerator from $Package - this takes 2-4 minutes, please wait..."
64
+ & npm.cmd install -g $Package --no-audit --no-fund --loglevel=error
65
65
  if ($LASTEXITCODE -ne 0) { throw 'npm install failed' }
66
66
  Refresh-Path
67
67
 
@@ -69,10 +69,10 @@ $setupArgs = @('setup')
69
69
  if ($Token) { $setupArgs += @('--token', $Token) }
70
70
  foreach ($a in $Allow) { $setupArgs += @('--allow', $a) }
71
71
  foreach ($d in $Deny) { $setupArgs += @('--deny', $d) }
72
- if (-not $paired) { Write-Host 'Next: a browser tab opens - sign in to Bridgerator and confirm this computer.' }
73
- & bridgerator @setupArgs
72
+ if (-not $paired) { Write-Host 'Next: a browser tab opens - sign in with the same account you use for Bridgerator and click "Connect this computer".' }
73
+ & bridgerator.cmd @setupArgs
74
74
  if ($LASTEXITCODE -ne 0) { throw 'bridgerator setup failed' }
75
- Write-Host 'Done. This computer is connected. Check with: bridgerator status'
75
+ Write-Host 'Done. Bridgerator starts in the background in about 10 seconds. Check any time with: bridgerator.cmd status'
76
76
 
77
77
  # Next steps (connect ChatGPT, example prompts) on the welcome page; skipped for -NoBrowser and
78
78
  # non-interactive sessions (scheduled tasks, remote shells). Never fails the install.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bridgerator",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Connect ChatGPT to your Windows PC: files, search and terminal through an outbound-only bridge with folder limits. No inbound ports, no admin rights.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/bridge.mjs CHANGED
@@ -88,7 +88,7 @@ export function connect(cfg, dc, log = console.log) {
88
88
  setTimeout(() => connect(cfg, dc, log), RECONNECT_MS);
89
89
  };
90
90
  ws.on('close', (code) => {
91
- if (code === 4003) { log('[bridgerator] relay rejected the device token — run `bridgerator setup --token <new token>`'); process.exit(2); }
91
+ if (code === 4003) { log('[bridgerator] relay rejected the device token — run the install command from your account page again (or `bridgerator.cmd setup --pair`)'); process.exit(2); }
92
92
  die(`close ${code}`);
93
93
  });
94
94
  ws.on('error', (e) => { if (!alive) die(`connect: ${e.message}`); });