@essentialai/cogent-plugin 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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogent",
3
- "version": "3.23.4",
3
+ "version": "3.23.5",
4
4
  "description": "Inter-session communication bridge for Claude Code with Slack integration. Enables CC agents and Slack team members to communicate in real time.",
5
5
  "author": {
6
6
  "name": "Essential AI Solutions",
@@ -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-plugin",
3
- "version": "3.23.4",
3
+ "version": "3.23.5",
4
4
  "description": "Cogent — Claude Code plugin (skills + slash-commands + MCP server) for the cross-agent comms fabric.",
5
5
  "author": { "name": "Essential AI Solutions Ltd.", "url": "https://essentialai.uk" },
6
6
  "homepage": "https://cogent.tools",