@essentialai/cogent-bridge-bundled 3.24.0 → 3.24.1
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/cogent-bridge.mjs +22 -6
- package/package.json +1 -1
package/cogent-bridge.mjs
CHANGED
|
@@ -26389,8 +26389,8 @@ var init_stdio2 = __esm({
|
|
|
26389
26389
|
// src/constants.ts
|
|
26390
26390
|
import { createRequire } from "node:module";
|
|
26391
26391
|
function resolveVersion() {
|
|
26392
|
-
if ("3.24.
|
|
26393
|
-
return "3.24.
|
|
26392
|
+
if ("3.24.1") {
|
|
26393
|
+
return "3.24.1";
|
|
26394
26394
|
}
|
|
26395
26395
|
try {
|
|
26396
26396
|
const require2 = createRequire(import.meta.url);
|
|
@@ -36055,10 +36055,24 @@ function registerRegisterPeerTool(server) {
|
|
|
36055
36055
|
{
|
|
36056
36056
|
method: "POST",
|
|
36057
36057
|
headers: { "Content-Type": "application/json" },
|
|
36058
|
-
|
|
36059
|
-
|
|
36060
|
-
|
|
36061
|
-
|
|
36058
|
+
// 🔴 NO `label` — let the relay name the channel.
|
|
36059
|
+
//
|
|
36060
|
+
// This used to send `Auto-created by ${label}`, which the relay's own
|
|
36061
|
+
// CreateSessionRequestSchema can NEVER accept: it requires
|
|
36062
|
+
// /^[a-z0-9][a-z0-9-]{1,30}[a-z0-9]$/ (lowercase, digits, hyphens, 3-32 chars).
|
|
36063
|
+
// "Auto-created by ..." has a capital A and spaces, so EVERY auto-create got
|
|
36064
|
+
// HTTP 400 INVALID_INPUT and the zero-config path — register with no channel
|
|
36065
|
+
// configured — could not work at all. Measured against a real relay 2026-09-15:
|
|
36066
|
+
// this body 400s, the same POST without a label returns 201.
|
|
36067
|
+
//
|
|
36068
|
+
// The 400 was visible as far back as 3.5.2 and was read as "don't fall into
|
|
36069
|
+
// auto-create" (see e2e/team-join-live.e2e.test.ts), so the symptom was routed
|
|
36070
|
+
// around and the path itself stayed broken.
|
|
36071
|
+
//
|
|
36072
|
+
// Omitting the label is not a workaround: the relay generates one with
|
|
36073
|
+
// collision-retry scoped to the org (generateSessionLabel + isLabelTaken). A
|
|
36074
|
+
// client-side slug would have to re-implement that and could still collide.
|
|
36075
|
+
body: JSON.stringify({ secret: autoSecret })
|
|
36062
36076
|
}
|
|
36063
36077
|
);
|
|
36064
36078
|
if (!resp.ok) {
|
|
@@ -36077,6 +36091,8 @@ function registerRegisterPeerTool(server) {
|
|
|
36077
36091
|
sessionId: cloudSessionId,
|
|
36078
36092
|
token: cloudToken,
|
|
36079
36093
|
peerId,
|
|
36094
|
+
// The CHANNEL's label (not this peer's) — the name a human needs to join it.
|
|
36095
|
+
label: created.label,
|
|
36080
36096
|
savedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
36081
36097
|
});
|
|
36082
36098
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@essentialai/cogent-bridge-bundled",
|
|
3
|
-
"version": "3.24.
|
|
3
|
+
"version": "3.24.1",
|
|
4
4
|
"description": "Zero-dependency, pre-bundled Cogent MCP bridge — a single self-contained file for fast cold `npx` startup (used by the Codex plugin, whose MCP startup window is short). Functionally identical to @essentialai/cogent-bridge; carries no npm dependencies so `npx` skips dependency install.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|