@essentialai/cogent-bridge-bundled 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.
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.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-bridge-bundled",
3
- "version": "3.21.4",
3
+ "version": "3.21.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": {