gm-cc 1.0.0 → 1.0.1
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/bin/gm-cc.js +10 -28
- package/package.json +1 -1
package/bin/gm-cc.js
CHANGED
|
@@ -12,31 +12,8 @@ const claudeSettingsPath = path.join(homeDir, '.claude', 'settings.json');
|
|
|
12
12
|
async function setup() {
|
|
13
13
|
console.log('🚀 Setting up gm-cc (Claude Code)...\n');
|
|
14
14
|
|
|
15
|
-
//
|
|
16
|
-
console.log('
|
|
17
|
-
try {
|
|
18
|
-
const plugkitCmd = process.platform === 'win32'
|
|
19
|
-
? `bun x gm-plugkit@latest spool > /dev/null 2>&1 &`
|
|
20
|
-
: `bun x gm-plugkit@latest spool > /dev/null 2>&1 &`;
|
|
21
|
-
execSync(plugkitCmd, { stdio: 'inherit' });
|
|
22
|
-
await new Promise(r => setTimeout(r, 2000));
|
|
23
|
-
console.log('✅ plugkit started\n');
|
|
24
|
-
} catch (e) {
|
|
25
|
-
console.log('⚠️ plugkit may already be running\n');
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Step 2: Add gm-skill to Claude Code
|
|
29
|
-
console.log('2️⃣ Installing gm-skill for Claude Code...');
|
|
30
|
-
try {
|
|
31
|
-
execSync('bun x gm-skill add AnEntrypoint/gm-skill -y -g', { stdio: 'inherit' });
|
|
32
|
-
console.log('✅ gm-skill installed\n');
|
|
33
|
-
} catch (e) {
|
|
34
|
-
console.error('❌ Failed to install gm-skill:', e.message);
|
|
35
|
-
process.exit(1);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Step 3: Add permissions to Claude Code settings
|
|
39
|
-
console.log('3️⃣ Configuring permissions in Claude Code...');
|
|
15
|
+
// Add permissions to Claude Code settings
|
|
16
|
+
console.log('Configuring permissions in Claude Code...');
|
|
40
17
|
try {
|
|
41
18
|
let settings = {};
|
|
42
19
|
if (fs.existsSync(claudeSettingsPath)) {
|
|
@@ -74,9 +51,14 @@ async function setup() {
|
|
|
74
51
|
}
|
|
75
52
|
|
|
76
53
|
console.log('🎉 gm-cc setup complete!');
|
|
77
|
-
console.log('\
|
|
78
|
-
console.log('
|
|
79
|
-
console.log('
|
|
54
|
+
console.log('\nPermissions added to ~/.claude/settings.json:');
|
|
55
|
+
console.log(' - Read(.gm)');
|
|
56
|
+
console.log(' - Write(.gm)');
|
|
57
|
+
console.log(' - Edit(.gm)');
|
|
58
|
+
console.log(' - Bash(*gm-plugkit*)');
|
|
59
|
+
console.log(' - Bash(*gm-tools*)');
|
|
60
|
+
console.log(' - Bash(*plugkit*)\n');
|
|
61
|
+
console.log('These permissions allow Claude Code to work with plugkit\n');
|
|
80
62
|
}
|
|
81
63
|
|
|
82
64
|
async function verify() {
|