@jeremyy_prt/cc-config 1.0.2 → 1.0.3
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 +8 -1
- package/cli.js +14 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,11 +58,18 @@ npx @jeremyy_prt/cc-config setup
|
|
|
58
58
|
|
|
59
59
|
## Config optionnelle
|
|
60
60
|
|
|
61
|
-
Context7 pour @explorer-docs:
|
|
61
|
+
**Context7** pour @explorer-docs:
|
|
62
62
|
```bash
|
|
63
63
|
claude mcp add --transport http context7 https://mcp.context7.com/mcp
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
+
**Alias shell** pour lancer Claude en bypass:
|
|
67
|
+
```bash
|
|
68
|
+
# Ajouter dans ~/.zshrc ou ~/.bashrc
|
|
69
|
+
alias cc='claude --dangerously-skip-permissions'
|
|
70
|
+
alias ccc='claude --dangerously-skip-permissions -c'
|
|
71
|
+
```
|
|
72
|
+
|
|
66
73
|
## License
|
|
67
74
|
|
|
68
75
|
MIT
|
package/cli.js
CHANGED
|
@@ -98,9 +98,12 @@ function installStatuslineDeps() {
|
|
|
98
98
|
try {
|
|
99
99
|
console.log('📦 Installation des dépendances statusline...');
|
|
100
100
|
|
|
101
|
+
const isWindows = process.platform === 'win32';
|
|
102
|
+
|
|
101
103
|
// Vérifier si bun est disponible
|
|
102
104
|
try {
|
|
103
|
-
|
|
105
|
+
const bunCheck = isWindows ? 'where bun' : 'which bun';
|
|
106
|
+
execSync(bunCheck, { stdio: 'ignore' });
|
|
104
107
|
execSync('bun install', {
|
|
105
108
|
cwd: statuslineDir,
|
|
106
109
|
stdio: 'ignore'
|
|
@@ -122,6 +125,8 @@ function installStatuslineDeps() {
|
|
|
122
125
|
function listInstalled() {
|
|
123
126
|
const commandsDir = path.join(CLAUDE_DIR, 'commands');
|
|
124
127
|
const agentsDir = path.join(CLAUDE_DIR, 'agents');
|
|
128
|
+
const settingsFile = path.join(CLAUDE_DIR, 'settings.json');
|
|
129
|
+
const statuslineDir = path.join(CLAUDE_DIR, 'scripts', 'statusline');
|
|
125
130
|
|
|
126
131
|
console.log('\n📋 Commandes installées:');
|
|
127
132
|
if (fs.existsSync(commandsDir)) {
|
|
@@ -138,6 +143,14 @@ function listInstalled() {
|
|
|
138
143
|
.map(f => f.replace('.md', ''));
|
|
139
144
|
agents.forEach(agent => console.log(` - @${agent}`));
|
|
140
145
|
}
|
|
146
|
+
|
|
147
|
+
console.log('\n⚙️ Configuration:');
|
|
148
|
+
if (fs.existsSync(settingsFile)) {
|
|
149
|
+
console.log(' ✓ Hooks installés (PreToolUse, Stop, Notification)');
|
|
150
|
+
}
|
|
151
|
+
if (fs.existsSync(statuslineDir)) {
|
|
152
|
+
console.log(' ✓ Statusline configurée');
|
|
153
|
+
}
|
|
141
154
|
}
|
|
142
155
|
|
|
143
156
|
function setup() {
|