@essentialai/cogent-bridge 3.21.1 → 3.21.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/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.21.2 — 2026-09-01
4
+
5
+ ### Fixed — `curl https://cogent.tools/install.sh | sh` died on its FIRST step for many users
6
+
7
+ If a `cogent` marketplace was already declared from the older **GitHub Git URL**, Claude Code
8
+ refuses to redeclare the name from a different source:
9
+
10
+ ```
11
+ ✘ Failed to add marketplace: Cannot add marketplace "cogent": its network source differs
12
+ from the one declared for it in settings ...
13
+ ```
14
+
15
+ install.sh runs under `set -e`, so that single failure **killed the entire installer**. Because
16
+ Claude Code is set up *before* Codex, the **Codex branch never ran** — the user was installing to
17
+ get `cogent-codex`, and got no Codex install, no launcher, and no explanation beyond
18
+ `command not found`. Latent since **2026-07-28**, shipped through every release since 3.12.0.
19
+
20
+ Two fixes: the marketplace add is now **idempotent** (on a source conflict it removes the stale
21
+ declaration and re-adds), and **every agent branch is failure-tolerant** — one agent's problem can
22
+ no longer deny the user the other agent. If nothing at all installs, the script now says so and
23
+ exits non-zero instead of printing a cheerful "Done."
24
+
25
+ ### Added — `scripts/install-matrix-test.mjs`, a HARD release gate (Step 13a)
26
+
27
+ The blocker survived ~5 weeks because our only install check began with
28
+ `claude plugin marketplace remove cogent` — it **deleted the state that triggers the bug**, then
29
+ declared the install works. It proved "install works on a machine we just cleaned", never "install
30
+ works on a real user's machine".
31
+
32
+ The new gate runs the real installer against the states users are actually in — **clean**,
33
+ **conflict-git** (followed the older Git-URL docs), **reinstall** — each in a throwaway
34
+ `CLAUDE_CONFIG_DIR` so it is hermetic. Per state it asserts exit 0, conflict recovery, the final
35
+ marketplace source, that `cogent@cogent` installs, **and that the Codex branch was reached**. It
36
+ also asserts install.sh / uninstall.sh / marketplace.json are actually SERVED and that
37
+ marketplace.json's version matches the release. Mutation-proven: RED against the live pre-fix
38
+ script (reproducing the user's exact error), GREEN against the fixed build.
39
+
3
40
  ## 3.21.1 — 2026-08-31
4
41
 
5
42
  ### Fixed — a label session with an unreachable relay delayed the MCP handshake by ~2.4s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@essentialai/cogent-bridge",
3
- "version": "3.21.1",
3
+ "version": "3.21.2",
4
4
  "description": "Cogent Bridge — cross-agent comms for Claude Code, OpenAI Codex and Slack. Codex users: install with `curl -fsSL https://cogent.tools/install.sh | sh`, then start with `cogent-codex` for real-time peer wake.",
5
5
  "type": "module",
6
6
  "workspaces": [
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.eaisdevelopment/cogent",
4
4
  "title": "Cogent Bridge from Essential AI Solutions (essentialai.uk)",
5
5
  "description": "MCP bridge for inter-session communication between Claude Code instances",
6
- "version": "3.21.1",
6
+ "version": "3.21.2",
7
7
  "repository": {
8
8
  "url": "https://github.com/eaisdevelopment/cogent",
9
9
  "source": "github"
@@ -12,7 +12,7 @@
12
12
  {
13
13
  "registryType": "npm",
14
14
  "identifier": "@essentialai/cogent-bridge",
15
- "version": "3.21.1",
15
+ "version": "3.21.2",
16
16
  "runtimeHint": "npx",
17
17
  "transport": {
18
18
  "type": "stdio"