@essentialai/cogent-plugin 3.21.4 → 3.21.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.21.4",
3
+ "version": "3.21.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.21.4") {
26393
- return "3.21.4";
26392
+ if ("3.21.5") {
26393
+ return "3.21.5";
26394
26394
  }
26395
26395
  try {
26396
26396
  const require2 = createRequire(import.meta.url);
@@ -27031,6 +27031,10 @@ var init_peer_registry = __esm({
27031
27031
  // src/services/agent-config.ts
27032
27032
  import os4 from "node:os";
27033
27033
  import path8 from "node:path";
27034
+ function claudeConfigDir() {
27035
+ const override = process.env.CLAUDE_CONFIG_DIR?.trim();
27036
+ return override ? override : path8.join(os4.homedir(), ".claude");
27037
+ }
27034
27038
  function codexHomeDir() {
27035
27039
  const override = process.env.CODEX_HOME?.trim();
27036
27040
  return override ? override : path8.join(os4.homedir(), ".codex");
@@ -27276,7 +27280,9 @@ async function execClaude(sessionId, message, cwd, timeoutMs) {
27276
27280
  truncated
27277
27281
  ];
27278
27282
  const cleanEnv = buildResumeEnv(process.env, "CLAUDE", ["CLAUDE_CONFIG_DIR"]);
27279
- if (resolvedRoot) cleanEnv.CLAUDE_CONFIG_DIR = resolvedRoot;
27283
+ if (resolvedRoot && resolvedRoot !== path10.resolve(claudeConfigDir())) {
27284
+ cleanEnv.CLAUDE_CONFIG_DIR = resolvedRoot;
27285
+ }
27280
27286
  cleanEnv.COGENT_CHECK_ON_STOP = "0";
27281
27287
  const child = spawn(config2.COGENT_CLAUDE_PATH, args, {
27282
27288
  cwd,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@essentialai/cogent-plugin",
3
- "version": "3.21.4",
3
+ "version": "3.21.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",