@akshar5/cohall 0.11.1 → 0.11.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/CHANGELOG.md +25 -0
- package/README.md +4 -4
- package/bin/cohall.js +254 -218
- package/bin/cohall.js.map +15 -15
- package/docs/grok-bot.md +4 -3
- package/docs/install.md +9 -5
- package/docs/integrations.md +7 -0
- package/docs/services.md +9 -6
- 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,14 +95,16 @@ 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
|
|
99
|
-
reading a pairing token
|
|
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.
|
|
100
101
|
`init` and `join` reuse a saved address but never assume a local relay for a new
|
|
101
102
|
installation. Re-running `cohall init` repairs the
|
|
102
103
|
skill installation and reuses credentials when the selected relay has not
|
|
103
104
|
changed. Keeping the default workspace retains all configured roots;
|
|
104
|
-
`init --client-only`
|
|
105
|
-
|
|
105
|
+
`init --client-only` and `join --client-only` retain worker settings without
|
|
106
|
+
revalidating unused workspace directories. Explicit `join --workspace` changes
|
|
107
|
+
still require existing directories; `--providers` can override the provider selection. An explicit
|
|
106
108
|
`--token-file` requests a new pairing exchange even when credentials are saved.
|
|
107
109
|
`cohall join` remains the non-guided configuration primitive.
|
|
108
110
|
`--client-only` and `--service` cannot be combined.
|
|
@@ -264,7 +266,9 @@ An exact version already installed on disk skips package installation and still
|
|
|
264
266
|
restarts active services. Dry runs and failed installations preserve restart
|
|
265
267
|
recovery state. A new explicit version takes precedence over an older recovery
|
|
266
268
|
record, while retaining unfinished restarts for the new version. `--no-restart`
|
|
267
|
-
also preserves pending restarts for a later retry.
|
|
269
|
+
also preserves pending restarts for a later retry. A later
|
|
270
|
+
`cohall upgrade --no-restart` still checks the latest release and carries those
|
|
271
|
+
pending restarts forward if another version is installed.
|
|
268
272
|
|
|
269
273
|
Upgrade tools use the first PATH candidate that passes ownership and permission
|
|
270
274
|
checks. Unsafe candidates are skipped; an explicit executable path must pass
|
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
|
|
@@ -202,6 +206,9 @@ execution. Historical records cannot prove that a host is connected now.
|
|
|
202
206
|
|
|
203
207
|
Evidence is stored locally in `<config_path>.mcp-hosts`, isolated for each
|
|
204
208
|
configuration, with at most eight recent records retained for seven days.
|
|
209
|
+
Brief file replacement conflicts get a short, bounded retry. Persistent storage
|
|
210
|
+
failures produce one server warning and stop recording for that launch; MCP tools
|
|
211
|
+
continue working.
|
|
205
212
|
Records contain no tool names, arguments, results, relay URLs, tokens, or
|
|
206
213
|
conversation content. Metadata write failures leave MCP operational and are
|
|
207
214
|
reported on its stderr. Older Cohall servers create no records; reconnect an
|
package/docs/services.md
CHANGED
|
@@ -49,10 +49,12 @@ The user unit is written under `$XDG_CONFIG_HOME/systemd/user` when that variabl
|
|
|
49
49
|
is an absolute path, or `$HOME/.config/systemd/user` otherwise.
|
|
50
50
|
|
|
51
51
|
The generated service uses the exact Cohall executable and puts the current
|
|
52
|
-
Node.js directory first on `PATH`. Linux and macOS services
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
Node.js directory first on `PATH`. For npm installations, Linux and macOS services
|
|
53
|
+
also include the verified global prefix's `bin` directory so providers installed
|
|
54
|
+
alongside Cohall remain available, including with a custom prefix. They also
|
|
55
|
+
include the configured pnpm home and its `bin` subdirectory. For pnpm installations,
|
|
56
|
+
services also save the selected pnpm executable, global package directory, global
|
|
57
|
+
bin directory, and store directory.
|
|
56
58
|
This preserves custom paths supplied through shell configuration and prevents a
|
|
57
59
|
Corepack shim on the service PATH from redirecting upgrades. Global pnpm operations
|
|
58
60
|
ignore the current project’s Corepack manager specification.
|
|
@@ -179,8 +181,9 @@ cohall doctor
|
|
|
179
181
|
```
|
|
180
182
|
|
|
181
183
|
`relay use` first proves that every stored client and device credential works
|
|
182
|
-
against the new relay.
|
|
183
|
-
|
|
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.
|
|
184
187
|
Repeat the command to retry a failed restart or apply a previously saved address;
|
|
185
188
|
credentials are verified again, and an unchanged address is not rewritten.
|
|
186
189
|
Current relays verify device credentials without claiming the running worker's
|