@akshar5/cohall 0.11.2 → 0.12.0
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 +21 -0
- package/README.md +33 -4
- package/bin/cohall.js +581 -399
- package/bin/cohall.js.map +19 -18
- package/docs/grok-bot.md +4 -3
- package/docs/install.md +29 -4
- package/docs/integrations.md +4 -0
- package/docs/services.md +3 -2
- package/package.json +1 -1
package/docs/grok-bot.md
CHANGED
|
@@ -103,11 +103,12 @@ root, but Codex tasks need a valid root.
|
|
|
103
103
|
|
|
104
104
|
Find the gateway discovery file on **that computer**. On current Grok Bot
|
|
105
105
|
computers it may be at `$HOME/agent-data/gateway.json`; use the actual path if
|
|
106
|
-
different. The file contains a local gateway credential, so check that it is
|
|
107
|
-
readable without printing or copying its contents:
|
|
106
|
+
different. The file contains a local gateway credential, so check that it is a
|
|
107
|
+
readable regular file without printing or copying its contents:
|
|
108
108
|
|
|
109
109
|
```bash
|
|
110
|
-
test -
|
|
110
|
+
test -f "$HOME/agent-data/gateway.json" && test -r "$HOME/agent-data/gateway.json" &&
|
|
111
|
+
"$HOME/.local/bin/cohall" configure \
|
|
111
112
|
--grok-gateway "$HOME/agent-data/gateway.json" \
|
|
112
113
|
--providers grok-bot
|
|
113
114
|
```
|
package/docs/install.md
CHANGED
|
@@ -95,9 +95,9 @@ Pairing also returns `join_instructions`: a copyable agent setup brief for the
|
|
|
95
95
|
selected role and relay. It contains no pairing token; transfer that separately.
|
|
96
96
|
|
|
97
97
|
When run in a terminal, omitted relay, name, workspace, provider, and token
|
|
98
|
-
values are prompted. A fresh setup validates the relay URL
|
|
99
|
-
before reading a pairing token. A device
|
|
100
|
-
workspace first.
|
|
98
|
+
values are prompted. A fresh setup validates the relay URL, device name (1–128
|
|
99
|
+
characters), and provider selection before reading a pairing token. A device
|
|
100
|
+
`join` also requires at least one workspace first.
|
|
101
101
|
`init` and `join` reuse a saved address but never assume a local relay for a new
|
|
102
102
|
installation. Re-running `cohall init` repairs the
|
|
103
103
|
skill installation and reuses credentials when the selected relay has not
|
|
@@ -172,9 +172,14 @@ disabled provider fails with an error instead of starting that provider.
|
|
|
172
172
|
## Configuration
|
|
173
173
|
|
|
174
174
|
`cohall config` shows stored configuration without tokens. `cohall configure`
|
|
175
|
-
changes the device name, workspace roots, providers, Grok gateway path, model, sandbox, or relay
|
|
175
|
+
changes the device name, description, workspace roots, providers, Grok gateway path, model, sandbox, or relay
|
|
176
176
|
for a fresh pairing. Use `cohall relay use <url>` when moving an existing relay;
|
|
177
177
|
it preserves credentials only after verifying them at the restored address.
|
|
178
|
+
Use `cohall configure --description 'iOS builds and simulator testing'` to
|
|
179
|
+
advertise a device's specialties, or `--description ''` to clear them. Descriptions
|
|
180
|
+
allow up to 512 characters and appear after restarting the worker on an updated
|
|
181
|
+
relay. They describe the device; advertised providers and workspace roots still
|
|
182
|
+
determine what work it can accept.
|
|
178
183
|
Non-loopback HTTP is refused unless `--allow-http` explicitly confirms that an
|
|
179
184
|
independent private network such as Tailscale encrypts the connection.
|
|
180
185
|
`cohall doctor` checks the effective configuration, relay connection, provider
|
|
@@ -197,6 +202,25 @@ On Linux, `XDG_CONFIG_HOME` and `XDG_DATA_HOME` must be absolute paths. Empty or
|
|
|
197
202
|
relative values use `~/.config` and `~/.local/share` instead. Relay data defaults
|
|
198
203
|
to the `cohall` directory under `XDG_DATA_HOME`; `COHALL_DATA_DIR` overrides it.
|
|
199
204
|
|
|
205
|
+
### Live device status
|
|
206
|
+
|
|
207
|
+
`cohall devices --watch` shows device availability, descriptions, version
|
|
208
|
+
differences, and current task counts. `Input` counts tasks paused for an answer;
|
|
209
|
+
`Active` includes assigned and running tasks. `Oldest` is the oldest queued wait.
|
|
210
|
+
Completed, failed, and cancelled tasks are excluded, as are forgotten devices.
|
|
211
|
+
Descriptions and counts describe all registered devices, not just tasks sent
|
|
212
|
+
by the current client.
|
|
213
|
+
|
|
214
|
+
Refreshes run sequentially every five seconds after the previous request
|
|
215
|
+
finishes. Use `--interval <seconds>` with a whole number from 1 to 300 to change
|
|
216
|
+
the cadence. Ctrl-C or SIGTERM stops the watch and any pending request. A temporary
|
|
217
|
+
relay failure displays an error and retries; authentication failures or an
|
|
218
|
+
unsupported relay end the watch. Upgrade the relay before using this command.
|
|
219
|
+
When stdout is redirected, `--watch` prints one compact JSON snapshot and exits;
|
|
220
|
+
plain `cohall devices` keeps its existing full JSON roster.
|
|
221
|
+
|
|
222
|
+
### Environment variables
|
|
223
|
+
|
|
200
224
|
Environment variables override stored values:
|
|
201
225
|
|
|
202
226
|
| Variable | Purpose |
|
|
@@ -208,6 +232,7 @@ Environment variables override stored values:
|
|
|
208
232
|
| `COHALL_TOKEN` | Relay owner credential |
|
|
209
233
|
| `COHALL_DEVICE_ID` | Stable device ID override |
|
|
210
234
|
| `COHALL_DEVICE_NAME` | Advertised device name |
|
|
235
|
+
| `COHALL_DEVICE_DESCRIPTION` | Advertised device specialties |
|
|
211
236
|
| `COHALL_DEVICE_PROVIDERS` | Provider allowlist or `auto` |
|
|
212
237
|
| `COHALL_DEVICE_WORKSPACES` | Comma-separated workspace roots |
|
|
213
238
|
| `COHALL_DEVICE_WORKSPACES_JSON` | JSON workspace roots; supports commas in paths |
|
package/docs/integrations.md
CHANGED
|
@@ -80,6 +80,10 @@ terminal result. Read `input_request.id` and `input_request.question` in their
|
|
|
80
80
|
JSON or `status`; inbox entries use `inputRequest` instead. Questions cannot be
|
|
81
81
|
acknowledged as completions.
|
|
82
82
|
|
|
83
|
+
A disconnected coding worker may still be running. The relay queues the original
|
|
84
|
+
turn for replay and waits for the worker to confirm that it ended. Answer the
|
|
85
|
+
question once the task reaches `needs_input`.
|
|
86
|
+
|
|
83
87
|
The original requester credential or relay owner answers the current question:
|
|
84
88
|
|
|
85
89
|
```bash
|
package/docs/services.md
CHANGED
|
@@ -181,8 +181,9 @@ cohall doctor
|
|
|
181
181
|
```
|
|
182
182
|
|
|
183
183
|
`relay use` first proves that every stored client and device credential works
|
|
184
|
-
against the new relay.
|
|
185
|
-
|
|
184
|
+
against the new relay. If configuration changes during verification, it asks you
|
|
185
|
+
to retry without overwriting those changes. Only then does it save the address.
|
|
186
|
+
It restarts an active managed device service automatically and leaves stopped workers stopped.
|
|
186
187
|
Repeat the command to retry a failed restart or apply a previously saved address;
|
|
187
188
|
credentials are verified again, and an unchanged address is not rewritten.
|
|
188
189
|
Current relays verify device credentials without claiming the running worker's
|