@hermespilot/link 0.6.0 → 0.6.2
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 +8 -3
- package/dist/{chunk-UHYO4EJD.js → chunk-UBWRPRZ4.js} +2173 -489
- package/dist/cli/index.js +615 -25
- package/dist/http/app.js +1 -1
- package/package.json +20 -20
package/README.md
CHANGED
|
@@ -41,13 +41,16 @@ hermeslink autostart on
|
|
|
41
41
|
hermeslink autostart off
|
|
42
42
|
hermeslink doctor
|
|
43
43
|
hermeslink logs
|
|
44
|
+
hermeslink logs -f
|
|
45
|
+
hermeslink logs -n 100
|
|
46
|
+
hermeslink logs flush
|
|
44
47
|
```
|
|
45
48
|
|
|
46
49
|
`hermeslink pair` requires HermesPilot Server and Relay to be available. The terminal side does not ask for a HermesPilot account; the App must be logged in before it scans or claims a pairing session.
|
|
47
50
|
|
|
48
51
|
After the first successful QR claim, `hermeslink pair` starts Hermes Link in the background and enables boot autostart. Pairing additional devices does not rewrite boot autostart settings; use `hermeslink autostart on` or `hermeslink autostart off` to manage that setting explicitly. Boot autostart does not configure launchd/systemd restart policies; if the user stops Hermes Link, the operating system should not automatically relaunch it until the next login/boot autostart cycle.
|
|
49
52
|
|
|
50
|
-
When the App sends a message, Hermes Link prepares `~/.hermes/config.yaml` for the Hermes API Server and attempts to start Hermes Gateway with `hermes gateway run --replace` if the API Server is not already reachable. If Hermes Agent is missing or too old to provide `/v1/
|
|
53
|
+
When the App sends a message, Hermes Link prepares `~/.hermes/config.yaml` for the Hermes API Server and attempts to start Hermes Gateway with `hermes gateway run --replace` if the API Server is not already reachable. If Hermes Agent is missing or too old to provide `/v1/responses`, Link returns an actionable error and the user should run:
|
|
51
54
|
|
|
52
55
|
```bash
|
|
53
56
|
hermes update
|
|
@@ -58,7 +61,7 @@ If Hermes Agent is configured through `~/.hermes/.env`, Link follows the same `A
|
|
|
58
61
|
|
|
59
62
|
CLI output follows the current system language when it is Chinese or English. You can override it for a single command with `HERMESLINK_LANG=zh-CN` or `HERMESLINK_LANG=en`.
|
|
60
63
|
|
|
61
|
-
Set `HERMESLINK_LOG_LEVEL=warn` to suppress `debug` and `info` logs in published builds; `warn` is the default. You can also persist it with `hermeslink config set log-level warn`.
|
|
64
|
+
Set `HERMESLINK_LOG_LEVEL=warn` to suppress `debug` and `info` logs in published builds; `warn` is the default. You can also persist it with `hermeslink config set log-level warn`. A running daemon keeps the log write level it started with; run `hermeslink restart` after changing `log-level` if you need the write level to take effect immediately. `hermeslink logs` filters displayed lines by the current configured level by default, and `--level debug` can be used to inspect lower-level history.
|
|
62
65
|
|
|
63
66
|
## Runtime data
|
|
64
67
|
|
|
@@ -70,4 +73,6 @@ Hermes Link keeps its local identity and runtime state under:
|
|
|
70
73
|
|
|
71
74
|
Uninstalling the npm package does not remove this directory, so the same Link ID can be reused after reinstalling.
|
|
72
75
|
|
|
73
|
-
Service logs are written as rotated JSONL files under `~/.hermeslink/logs/hermeslink.log`. A paired App can read the same service log stream through `GET /api/v1/logs` using the normal Link access token.
|
|
76
|
+
Service logs are written as rotated JSONL files under `~/.hermeslink/logs/hermeslink.log`. `hermeslink logs` prints the relevant paths, `hermeslink logs -n 100` prints recent lines, and `hermeslink logs -f` follows service and daemon logs without depending on a platform-specific `tail` command. Use `hermeslink logs --error -n 20`, `hermeslink logs --warn -n 50`, or `hermeslink logs --level debug` to choose the displayed severity. `hermeslink logs flush` clears active and rotated service/daemon logs; use `hermeslink logs flush --all` to include Gateway logs. A paired App can read the same service log stream through `GET /api/v1/logs` using the normal Link access token.
|
|
77
|
+
|
|
78
|
+
Hermes Link also maintains a small Hermes skill under `~/.hermeslink/hermes-skills/hermes-link/SKILL.md`. On start, successful pairing, and Profile creation, Link registers `~/.hermeslink/hermes-skills` in each existing Hermes Profile's `skills.external_dirs`, so Hermes can understand what Hermes Link is and help diagnose HermesPilot mobile connection issues.
|