delimit-cli 4.1.18 → 4.1.19

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.
@@ -770,7 +770,9 @@ exit 127
770
770
  // Add to PATH in shell rc files (create if missing)
771
771
  const pathLine = `export PATH="${shimsDir}:$PATH" # Delimit governance wrapping`;
772
772
  let pathWritten = false;
773
- for (const rc of ['.bashrc', '.zshrc', '.profile']) {
773
+ // Write to ALL rc files that exist SSH login shells source
774
+ // .bash_profile (not .bashrc), so we need both
775
+ for (const rc of ['.bashrc', '.bash_profile', '.zshrc', '.zprofile', '.profile']) {
774
776
  const rcPath = path.join(os.homedir(), rc);
775
777
  try {
776
778
  if (fs.existsSync(rcPath)) {
@@ -782,10 +784,13 @@ exit 127
782
784
  }
783
785
  } catch { /* skip unreadable files */ }
784
786
  }
785
- // If no rc files exist, create .bashrc with the PATH export
787
+ // If no rc files exist, create both .bashrc AND .bash_profile
788
+ // (.bash_profile for SSH login shells, .bashrc for interactive)
786
789
  if (!pathWritten) {
787
- const bashrc = path.join(os.homedir(), '.bashrc');
788
- fs.writeFileSync(bashrc, `# Delimit governance wrapping\n${pathLine}\n`);
790
+ const snippet = `# Delimit governance wrapping\n${pathLine}\n`;
791
+ for (const rc of ['.bashrc', '.bash_profile']) {
792
+ fs.writeFileSync(path.join(os.homedir(), rc), snippet);
793
+ }
789
794
  pathWritten = true;
790
795
  }
791
796
  // Also write to /etc/profile.d/ if writable (login shells)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "delimit-cli",
3
3
  "mcpName": "io.github.delimit-ai/delimit-mcp-server",
4
- "version": "4.1.18",
4
+ "version": "4.1.19",
5
5
  "description": "Unify Claude Code, Codex, Cursor, and Gemini CLI with persistent context, governance, and multi-model debate.",
6
6
  "main": "index.js",
7
7
  "files": [