@essentialai/cogent-bridge-bundled 3.24.0 → 3.24.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/cogent-bridge.mjs +26 -7
- 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.2") {
|
|
26393
|
+
return "3.24.2";
|
|
26394
26394
|
}
|
|
26395
26395
|
try {
|
|
26396
26396
|
const require2 = createRequire(import.meta.url);
|
|
@@ -27646,7 +27646,10 @@ async function checkCodexSandbox() {
|
|
|
27646
27646
|
const probe = await probeSandboxStatus(config2);
|
|
27647
27647
|
if (probe.status === "blocked") {
|
|
27648
27648
|
if (config2.COGENT_CODEX_SANDBOX_FALLBACK) {
|
|
27649
|
-
return {
|
|
27649
|
+
return {
|
|
27650
|
+
ok: true,
|
|
27651
|
+
message: `Sandbox blocked (${probe.detail}) \u2014 auto-bypass is ON, so codex sessions COGENT WAKES run unsandboxed. This does NOT change an already-running interactive codex session: that keeps the sandbox/approval profile it was launched with, and on this host its bwrap-backed modes will still fail. Relaunch it with --dangerously-bypass-approvals-and-sandbox, or enable unprivileged userns, to fix that.`
|
|
27652
|
+
};
|
|
27650
27653
|
}
|
|
27651
27654
|
return { ok: false, message: `Sandbox blocked: ${probe.detail}. Codex can't edit/test \u2014 set COGENT_CODEX_SANDBOX_FALLBACK=1, COGENT_CODEX_SANDBOX=bypass, or enable unprivileged userns` };
|
|
27652
27655
|
}
|
|
@@ -36055,10 +36058,24 @@ function registerRegisterPeerTool(server) {
|
|
|
36055
36058
|
{
|
|
36056
36059
|
method: "POST",
|
|
36057
36060
|
headers: { "Content-Type": "application/json" },
|
|
36058
|
-
|
|
36059
|
-
|
|
36060
|
-
|
|
36061
|
-
|
|
36061
|
+
// 🔴 NO `label` — let the relay name the channel.
|
|
36062
|
+
//
|
|
36063
|
+
// This used to send `Auto-created by ${label}`, which the relay's own
|
|
36064
|
+
// CreateSessionRequestSchema can NEVER accept: it requires
|
|
36065
|
+
// /^[a-z0-9][a-z0-9-]{1,30}[a-z0-9]$/ (lowercase, digits, hyphens, 3-32 chars).
|
|
36066
|
+
// "Auto-created by ..." has a capital A and spaces, so EVERY auto-create got
|
|
36067
|
+
// HTTP 400 INVALID_INPUT and the zero-config path — register with no channel
|
|
36068
|
+
// configured — could not work at all. Measured against a real relay 2026-09-15:
|
|
36069
|
+
// this body 400s, the same POST without a label returns 201.
|
|
36070
|
+
//
|
|
36071
|
+
// The 400 was visible as far back as 3.5.2 and was read as "don't fall into
|
|
36072
|
+
// auto-create" (see e2e/team-join-live.e2e.test.ts), so the symptom was routed
|
|
36073
|
+
// around and the path itself stayed broken.
|
|
36074
|
+
//
|
|
36075
|
+
// Omitting the label is not a workaround: the relay generates one with
|
|
36076
|
+
// collision-retry scoped to the org (generateSessionLabel + isLabelTaken). A
|
|
36077
|
+
// client-side slug would have to re-implement that and could still collide.
|
|
36078
|
+
body: JSON.stringify({ secret: autoSecret })
|
|
36062
36079
|
}
|
|
36063
36080
|
);
|
|
36064
36081
|
if (!resp.ok) {
|
|
@@ -36077,6 +36094,8 @@ function registerRegisterPeerTool(server) {
|
|
|
36077
36094
|
sessionId: cloudSessionId,
|
|
36078
36095
|
token: cloudToken,
|
|
36079
36096
|
peerId,
|
|
36097
|
+
// The CHANNEL's label (not this peer's) — the name a human needs to join it.
|
|
36098
|
+
label: created.label,
|
|
36080
36099
|
savedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
36081
36100
|
});
|
|
36082
36101
|
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.2",
|
|
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": {
|