UNPKG

@essentialai/cogent-bridge

Version:

Cogent Bridge — cross-agent comms for Claude Code, OpenAI Codex and Slack. Codex users: install with `curl -fsSL https://cogent.tools/install.sh | sh`, then start with `cogent-codex` for real-time peer wake.

21 lines • 480 B
import { execSync } from "node:child_process"; export function detectNpxPath() { try { return execSync("which npx", { encoding: "utf-8" }).trim(); } catch { return "npx"; } } export function detectClaudePath() { try { return execSync("which claude", { encoding: "utf-8" }).trim(); } catch { return null; } } export function isNvmPath(p) { return p.includes(".nvm/versions/"); } //# sourceMappingURL=detect.js.map