@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 +9 -1
- package/dist/cli.js +1 -1
- package/package.json +1 -1
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
package/package.json
CHANGED