pinkcollab 4.2.0 → 4.3.1

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.
Files changed (2) hide show
  1. package/README.md +35 -10
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,24 +1,49 @@
1
1
  # PinkCollab
2
2
 
3
- This package installs the prebuilt [PinkCollab Gateway](https://github.com/3xian/PinkCollab) for the current operating system and CPU architecture. A Rust toolchain is not required.
3
+ Install the prebuilt [PinkCollab Gateway](https://github.com/3xian/PinkCollab) for macOS arm64/x64, Linux arm64/x64, or Windows x64. Requires Node.js 18+; no Rust toolchain is needed. npm selects the native binary through an optional `@pinkcollab/gateway-*` dependency.
4
+
5
+ ## Install and pair
6
+
7
+ Install [Oh My Pi (OMP)](https://omp.sh/) separately and confirm `omp --version` works under the Gateway user. Install the [Android APK](https://github.com/3xian/PinkCollab/releases/latest/download/pinkcollab-android.apk) from the same release on an Android 8.0+ phone.
4
8
 
5
9
  ```sh
6
10
  npm install -g pinkcollab@latest
7
- node "$(npm root -g)/pinkcollab/bin/check-install.js"
8
- cd ~/projects
11
+ pinkcollab --version
12
+ cd /path/to/projects
9
13
  pinkcollab setup
10
14
  ```
11
15
 
12
- Oh My Pi (OMP) remains a separate dependency; `omp --version` must work before the Gateway can run sessions.
16
+ Default setup requires Tailscale on the host and a tailnet that permits public Funnel access. It guides sign-in, starts the background Gateway and displays a pairing QR. The phone does not need Tailscale. For your own HTTPS proxy, configure the proxy first, then use:
17
+
18
+ ```sh
19
+ pinkcollab setup --transport external --public-url https://collab.example.com --workspace /srv/projects
20
+ ```
21
+
22
+ External setup requires no Tailscale and checks local health, not remote reachability. Private Tailscale Serve also uses external setup. See [deployment](https://github.com/3xian/PinkCollab/blob/main/docs/deployment.md) for proxy requirements, platform behavior and troubleshooting.
23
+
24
+ Windows starts the Gateway at user login without a password or administrator rights for a new installation. Closing the terminal or locking the screen leaves it running; logout stops it. Existing Windows services require the documented migration. Every host must stay awake.
13
25
 
14
- Guided setup requires Tailscale on the host, installed separately, and an account allowed to use Funnel. The phone does not need Tailscale for Funnel. Install the Android app from the same PinkCollab release as this Gateway package. Setup guides sign-in and pairing, then keeps the Gateway running in the background. On Windows it starts at user login, needs no Windows password or administrator rights for a new installation, and stops on logout. Closing the terminal or locking the screen leaves it running. See the [deployment guide](https://github.com/3xian/PinkCollab/blob/main/docs/deployment.md) for migration from old Windows services, Linux logout behavior, and manual setup.
26
+ ## Check installation and upgrade
15
27
 
16
- Supported targets are macOS arm64/x64, Linux arm64/x64, and Windows x64. The platform binary is delivered through an optional `@pinkcollab/gateway-*` dependency selected by npm.
28
+ After installing or upgrading, check the shell's selected launcher before setup or update:
17
29
 
18
- Use `pinkcollab status` to check the host and `pinkcollab doctor` for detailed diagnostics. Manual Serve or HTTPS proxy deployments remain supported; their remote connectivity is reported as externally managed, not verified.
30
+ ```sh
31
+ node "$(npm root -g)/pinkcollab/bin/check-install.js"
32
+ npm list -g pinkcollab --depth=0
33
+ pinkcollab --version
34
+ ```
35
+
36
+ In PowerShell, run `node (Join-Path (npm root -g) "pinkcollab/bin/check-install.js")`. Run this outside npm lifecycle scripts, which modify PATH. It reports shadowing installations without deleting files or restarting the Gateway; shell aliases and cached lookups need separate checks.
19
37
 
20
- After upgrading this package, run `pinkcollab update` to apply this CLI to the installed Gateway. It does not change configuration. A changed running Gateway restarts, stopping active OMP runtimes while preserving stored sessions and pairings. Stopped Gateways stay stopped unless completing an interrupted restart or reloading a still-loaded macOS agent. If an update fails, resolve the error and rerun `pinkcollab update`; pending updates are retried.
38
+ If versions differ, inspect `type -a pinkcollab` on macOS/Linux or `Get-Command pinkcollab -All` in PowerShell. Correct PATH or invoke the current npm launcher explicitly; see [duplicate installations](https://github.com/3xian/PinkCollab/blob/main/docs/deployment.md#upgrade-checks-and-duplicate-installations).
39
+
40
+ Finish active work, install the matching APK and npm package, then run:
41
+
42
+ ```sh
43
+ pinkcollab update
44
+ pinkcollab doctor
45
+ ```
21
46
 
22
- Run the PATH check directly from your shell after installing or upgrading. npm changes PATH inside lifecycle scripts, so this diagnostic is deliberately not an install hook. It warns when a different `pinkcollab` takes precedence and prints both the selected command and the installed launcher. Resolve any warning before update or setup. The check never deletes another installation or restarts a Gateway; shell aliases, cached lookups, and PowerShell-only script precedence require the shell checks below. In PowerShell, run `node (Join-Path (npm root -g) "pinkcollab/bin/check-install.js")`.
47
+ `update` applies this CLI to the installed background Gateway without changing configuration. A changed running Gateway restarts, ending active OMP runtimes while preserving sessions and pairings. A stopped Gateway stays stopped unless completing an interrupted restart or reloading a still-loaded macOS agent. Use `pinkcollab service start` when needed. If an update fails, fix the error and rerun it; pending updates are retried.
23
48
 
24
- Before update or setup, compare `pinkcollab --version` with `npm list -g pinkcollab --depth=0`. If they differ, inspect `type -a pinkcollab` on macOS/Linux or `Get-Command pinkcollab -All` in PowerShell. Run the launcher from the current npm prefix explicitly or correct PATH before upgrading the Gateway; see [upgrade checks and duplicate installations](https://github.com/3xian/PinkCollab/blob/main/docs/deployment.md#upgrade-checks-and-duplicate-installations). Afterward, `pinkcollab doctor` must show matching CLI and installed-binary hashes. Start a stopped Gateway with `pinkcollab service start`.
49
+ `doctor` should show matching CLI and installed-binary hashes. Use `pinkcollab status` for operational status and `pinkcollab pair` to pair another phone.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinkcollab",
3
- "version": "4.2.0",
3
+ "version": "4.3.1",
4
4
  "description": "Install and run the PinkCollab Gateway without a Rust toolchain",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,10 +28,10 @@
28
28
  "provenance": true
29
29
  },
30
30
  "optionalDependencies": {
31
- "@pinkcollab/gateway-darwin-arm64": "4.2.0",
32
- "@pinkcollab/gateway-darwin-x64": "4.2.0",
33
- "@pinkcollab/gateway-linux-arm64": "4.2.0",
34
- "@pinkcollab/gateway-linux-x64": "4.2.0",
35
- "@pinkcollab/gateway-win32-x64": "4.2.0"
31
+ "@pinkcollab/gateway-darwin-arm64": "4.3.1",
32
+ "@pinkcollab/gateway-darwin-x64": "4.3.1",
33
+ "@pinkcollab/gateway-linux-arm64": "4.3.1",
34
+ "@pinkcollab/gateway-linux-x64": "4.3.1",
35
+ "@pinkcollab/gateway-win32-x64": "4.3.1"
36
36
  }
37
37
  }