@termhub/agent 0.1.2 → 0.1.3

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
@@ -8,7 +8,7 @@ sleeping.
8
8
  ## Install
9
9
 
10
10
  ```bash
11
- npm i -g @termhub/agent
11
+ npm i -g @termhub/agent && termhub-agent --version
12
12
  ```
13
13
 
14
14
  Requires Node 20+ and `tmux` on the machine you're pairing.
@@ -55,6 +55,14 @@ Full Disk Access: **Ajustes → Privacidade e Segurança → Acesso Total ao Dis
55
55
 
56
56
  ## Troubleshooting
57
57
 
58
+ - **`termhub-agent: command not found` right after `npm i -g`**:
59
+ - **asdf**: asdf only creates shims for new global binaries after `asdf reshim nodejs` — run it once
60
+ and the command appears (same after every `npm i -g` of a new package).
61
+ - Otherwise npm's global bin directory is not on your `PATH` (common with Node from `n`, Volta, a
62
+ custom `npm config set prefix`, or distro packages): `export PATH="$(npm prefix -g)/bin:$PATH"`
63
+ and add it to `~/.zshrc`/`~/.bashrc`.
64
+ - Or skip the PATH entirely: `npx -y @termhub/agent connect --url … --token …`.
65
+
58
66
  - **Terminals fail to open with `posix_spawnp failed.`** (visible in `~/.termhub/agent.log`): node-pty's
59
67
  prebuilt `spawn-helper` lost its exec bit — npm 11 skips the postinstall that sets it unless the
60
68
  package is approved. The agent repairs this itself on startup and in `termhub-agent doctor`; if the
package/dist/cli.js CHANGED
@@ -993,7 +993,7 @@ async function status(deps = {}) {
993
993
  }
994
994
 
995
995
  // src/version.ts
996
- var AGENT_VERSION = "0.1.2";
996
+ var AGENT_VERSION = "0.1.3";
997
997
 
998
998
  // src/run.ts
999
999
  function detectOs(platform = process.platform) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@termhub/agent",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Agente do termhub: conecta esta máquina ao servidor por WebSocket de saída (sem SSH) e expõe os terminais tmux no navegador.",
5
5
  "license": "MIT",
6
6
  "private": false,