delimit-cli 4.1.17 → 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.
- package/README.md +3 -3
- package/bin/delimit-setup.js +20 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,9 +30,9 @@ Works across any configuration — from a single model on a budget to an enterpr
|
|
|
30
30
|
## Try it in 2 minutes
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
npx delimit-cli scan
|
|
34
|
-
npx delimit-cli demo
|
|
35
|
-
npx delimit-cli setup
|
|
33
|
+
npx delimit-cli scan # Instant health grade for your API spec
|
|
34
|
+
npx delimit-cli demo # See governance in action — no setup needed
|
|
35
|
+
npx delimit-cli setup && source ~/.bashrc # Configure AI assistants + activate
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
No API keys. No account. No config files.
|
package/bin/delimit-setup.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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
|
|
788
|
-
|
|
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)
|
|
@@ -802,19 +807,17 @@ exit 127
|
|
|
802
807
|
log(` ${green('✓')} Governance wrapping enabled`);
|
|
803
808
|
}
|
|
804
809
|
|
|
805
|
-
//
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
}
|
|
816
|
-
} catch {
|
|
817
|
-
log(` ${dim(' Run')} ${green('source ~/.bashrc')} ${dim('to activate the governance banner')}`);
|
|
810
|
+
// Check if shims are already in current PATH
|
|
811
|
+
const currentPath = process.env.PATH || '';
|
|
812
|
+
if (!currentPath.includes('.delimit/shims')) {
|
|
813
|
+
// Can't modify parent shell, but try exec $SHELL -l to reload
|
|
814
|
+
log('');
|
|
815
|
+
log(` ${yellow('!')} Run this to activate the banner now:`);
|
|
816
|
+
log(` ${green(`export PATH="${shimsDir}:$PATH"`)}`);
|
|
817
|
+
log('');
|
|
818
|
+
log(` ${dim('Or just open a new terminal. Future sessions load it automatically.')}`);
|
|
819
|
+
} else {
|
|
820
|
+
log(` ${green('✓')} Shim active in current shell`);
|
|
818
821
|
}
|
|
819
822
|
} else {
|
|
820
823
|
log(` ${dim(' Skipped. Enable later: delimit shims enable')}`);
|
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.
|
|
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": [
|