@essentialai/cogent-bridge-bundled 3.23.4 → 3.23.5

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.
Files changed (2) hide show
  1. package/cogent-bridge.mjs +15 -2
  2. 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.23.4") {
26393
- return "3.23.4";
26392
+ if ("3.23.5") {
26393
+ return "3.23.5";
26394
26394
  }
26395
26395
  try {
26396
26396
  const require2 = createRequire(import.meta.url);
@@ -37217,11 +37217,24 @@ function registerJoinSessionTool(server) {
37217
37217
  );
37218
37218
  }
37219
37219
  const data = await resp.json();
37220
+ let carried = {};
37221
+ try {
37222
+ const prior = await loadCredentials();
37223
+ if (prior && prior.endpoint === endpoint && prior.sessionId === data.sessionId) {
37224
+ carried = {
37225
+ ...prior.peerId ? { peerId: prior.peerId } : {},
37226
+ ...prior.peerSecret ? { peerSecret: prior.peerSecret } : {}
37227
+ };
37228
+ }
37229
+ } catch (err) {
37230
+ logger.debug(`join-session: could not read prior credentials: ${err.message}`);
37231
+ }
37220
37232
  await saveCredentials({
37221
37233
  endpoint,
37222
37234
  sessionId: data.sessionId,
37223
37235
  token: data.token,
37224
37236
  label: resolvedLabel ?? data.label,
37237
+ ...carried,
37225
37238
  savedAt: (/* @__PURE__ */ new Date()).toISOString()
37226
37239
  });
37227
37240
  markJoinedInProcess();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@essentialai/cogent-bridge-bundled",
3
- "version": "3.23.4",
3
+ "version": "3.23.5",
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": {