@akshar5/cohall 0.4.8 → 0.4.9
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/CHANGELOG.md +7 -0
- package/README.md +5 -3
- package/bin/cohall.js +368 -118
- package/bin/cohall.js.map +13 -13
- package/docs/install.md +4 -1
- package/docs/services.md +6 -3
- package/package.json +3 -3
package/docs/install.md
CHANGED
|
@@ -65,9 +65,11 @@ cohall --version
|
|
|
65
65
|
The relay owner creates a token valid for ten minutes and one exchange:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
+
read -rsp 'Owner token: ' owner_token; printf '\n'
|
|
68
69
|
COHALL_RELAY_URL=https://cohall.example.com \
|
|
69
|
-
COHALL_TOKEN=
|
|
70
|
+
COHALL_TOKEN="$owner_token" \
|
|
70
71
|
npx -y @akshar5/cohall pair --label "Workstation"
|
|
72
|
+
unset owner_token
|
|
71
73
|
```
|
|
72
74
|
|
|
73
75
|
Transfer it privately. On the machine being added, provide it through stdin so
|
|
@@ -154,6 +156,7 @@ Environment variables override stored values:
|
|
|
154
156
|
| `COHALL_DATA_DIR` | Relay database and owner-token directory |
|
|
155
157
|
| `COHALL_RELAY_HOST` / `COHALL_RELAY_PORT` | Relay listener |
|
|
156
158
|
| `COHALL_RELAY_ALLOW_REMOTE` | Explicit non-loopback binding opt-in |
|
|
159
|
+
| `COHALL_HISTORY_TASK_LIMIT` | Terminal tasks retained; default `1000` |
|
|
157
160
|
|
|
158
161
|
The relay must be reachable to submit work or read status. Accepted tasks wait
|
|
159
162
|
durably while a target is offline and survive relay restarts when its data
|
package/docs/services.md
CHANGED
|
@@ -52,13 +52,14 @@ loginctl show-user "$USER" -p Linger
|
|
|
52
52
|
|
|
53
53
|
Create a dedicated `cohall` user, install the npm package globally so
|
|
54
54
|
`command -v cohall` returns `/usr/local/bin/cohall`, and place the relay
|
|
55
|
-
environment at `/etc/cohall/relay.env` with mode `0600
|
|
55
|
+
environment at `/etc/cohall/relay.env` with mode `0600`. Generate the token with
|
|
56
|
+
`openssl rand -hex 32`; do not use the placeholder literally.
|
|
56
57
|
|
|
57
58
|
```dotenv
|
|
58
59
|
COHALL_RELAY_HOST=0.0.0.0
|
|
59
60
|
COHALL_RELAY_PORT=8787
|
|
60
61
|
COHALL_RELAY_ALLOW_REMOTE=true
|
|
61
|
-
COHALL_TOKEN=replace-with-
|
|
62
|
+
COHALL_TOKEN=replace-with-the-output-of-openssl-rand-hex-32
|
|
62
63
|
COHALL_DATA_DIR=/var/lib/cohall
|
|
63
64
|
```
|
|
64
65
|
|
|
@@ -121,7 +122,9 @@ Run `npm install --global @akshar5/cohall`, pair and verify the machine from
|
|
|
121
122
|
PowerShell, then run:
|
|
122
123
|
|
|
123
124
|
```powershell
|
|
124
|
-
|
|
125
|
+
$packageRoot = Join-Path (npm root --global) "@akshar5/cohall"
|
|
126
|
+
powershell -ExecutionPolicy Bypass -File `
|
|
127
|
+
(Join-Path $packageRoot "deploy/windows/install-device.ps1")
|
|
125
128
|
```
|
|
126
129
|
|
|
127
130
|
The script registers a per-user scheduled task that starts `cohall device` at
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akshar5/cohall",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "Let coding agents delegate work across your own devices.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
62
62
|
"effect": "4.0.0-beta.102",
|
|
63
|
-
"ws": "^8.21.
|
|
63
|
+
"ws": "^8.21.3",
|
|
64
64
|
"zod": "^4.4.3"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/node": "^24.13.3",
|
|
68
68
|
"@types/ws": "^8.18.1",
|
|
69
69
|
"oxfmt": "^0.44.0",
|
|
70
|
-
"oxlint": "^1.
|
|
70
|
+
"oxlint": "^1.77.0",
|
|
71
71
|
"typescript": "^6.0.0",
|
|
72
72
|
"vitest": "^4.1.10"
|
|
73
73
|
},
|