gm-cc 2.0.51 → 2.0.52
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/.claude-plugin/marketplace.json +1 -1
- package/cli.js +3 -6
- package/package.json +1 -1
- package/plugin.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "AnEntrypoint"
|
|
5
5
|
},
|
|
6
6
|
"description": "State machine agent with hooks, skills, and automated git enforcement",
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.52",
|
|
8
8
|
"metadata": {
|
|
9
9
|
"description": "State machine agent with hooks, skills, and automated git enforcement"
|
|
10
10
|
},
|
package/cli.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const fs = require('fs');
|
|
3
3
|
const path = require('path');
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const homeDir = process.env.HOME || process.env.USERPROFILE || os.homedir();
|
|
7
|
-
const destDir = path.join(homeDir, '.claude');
|
|
4
|
+
const destDir = path.join(process.cwd(), '.claude');
|
|
8
5
|
|
|
9
6
|
const srcDir = __dirname;
|
|
10
7
|
const isUpgrade = fs.existsSync(destDir);
|
|
@@ -33,7 +30,7 @@ try {
|
|
|
33
30
|
|
|
34
31
|
filesToCopy.forEach(([src, dst]) => copyRecursive(path.join(srcDir, src), path.join(destDir, dst)));
|
|
35
32
|
|
|
36
|
-
// Register hooks in
|
|
33
|
+
// Register hooks in .claude/settings.json
|
|
37
34
|
const settingsPath = path.join(destDir, 'settings.json');
|
|
38
35
|
const hooksJsonPath = path.join(srcDir, 'hooks', 'hooks.json');
|
|
39
36
|
if (fs.existsSync(hooksJsonPath)) {
|
|
@@ -57,7 +54,7 @@ try {
|
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
56
|
fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2), 'utf-8');
|
|
60
|
-
console.log('✓ Hooks registered in
|
|
57
|
+
console.log('✓ Hooks registered in .claude/settings.json');
|
|
61
58
|
}
|
|
62
59
|
|
|
63
60
|
const destPath = process.platform === 'win32'
|
package/package.json
CHANGED