claudeguide-engineer 1.14.8 → 1.14.9

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.14.8",
2
+ "version": "1.14.9",
3
3
  "name": "claudeGuide-engineer",
4
4
  "description": "A comprehensive boilerplate template for building professional software projects with CLI Coding Agents (Claude Code and Open Code).",
5
5
  "buildDate": "2025-11-17T09:40:42.279Z",
@@ -12,4 +12,4 @@
12
12
  "downloadedBy": null,
13
13
  "installCount": 0
14
14
  }
15
- }
15
+ }
package/index.js ADDED
@@ -0,0 +1,101 @@
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+
6
+ const args = process.argv.slice(2);
7
+ const command = args[0];
8
+
9
+ if (!command || command === '--help' || command === '-h') {
10
+ console.log(`
11
+ Usage: cg <command>
12
+
13
+ Commands:
14
+ init, new Initialize a new project with ClaudeGuide Engineer Kit
15
+ update Update the kit in the current project
16
+ version, -v Show version
17
+ help, -h Show this help
18
+ `);
19
+ process.exit(0);
20
+ }
21
+
22
+ if (command === 'version' || command === '-v') {
23
+ const pkg = require('./package.json');
24
+ console.log(`claudeguide-engineer v${pkg.version}`);
25
+ process.exit(0);
26
+ }
27
+
28
+ if (command === 'init' || command === 'new' || command === 'update') {
29
+ console.log('šŸš€ Initializing ClaudeGuide Engineer Kit...');
30
+
31
+ const sourceDir = __dirname;
32
+ const targetDir = process.cwd();
33
+
34
+ // List of files and directories to copy
35
+ const filesToCopy = [
36
+ '.claude',
37
+ '.opencode',
38
+ '.releaserc.json',
39
+ '.commitlintrc.json',
40
+ '.repomixignore',
41
+ 'CLAUDE.md',
42
+ 'GEMINI.md',
43
+ 'README.md',
44
+ 'docs',
45
+ 'plans',
46
+ 'guide',
47
+ 'scripts',
48
+ 'tests'
49
+ ];
50
+
51
+ let successCount = 0;
52
+ let failCount = 0;
53
+
54
+ filesToCopy.forEach(file => {
55
+ const src = path.join(sourceDir, file);
56
+ const dest = path.join(targetDir, file);
57
+
58
+ if (fs.existsSync(src)) {
59
+ try {
60
+ if (fs.lstatSync(src).isDirectory()) {
61
+ copyRecursiveSync(src, dest);
62
+ } else {
63
+ fs.copyFileSync(src, dest);
64
+ }
65
+ console.log(` āœ… Copied: ${file}`);
66
+ successCount++;
67
+ } catch (err) {
68
+ console.error(` āŒ Failed to copy ${file}: ${err.message}`);
69
+ failCount++;
70
+ }
71
+ }
72
+ });
73
+
74
+ console.log(`\n✨ Done! (Success: ${successCount}, Failed: ${failCount})`);
75
+ console.log('\nNext steps:');
76
+ console.log('1. Run "npm install" (if adding to an existing project)');
77
+ console.log('2. Type "claude" to start building with AI agents');
78
+ } else {
79
+ console.log(`Unknown command: ${command}`);
80
+ console.log('Type "cg --help" for available commands.');
81
+ }
82
+
83
+ /**
84
+ * Recursive copy function
85
+ */
86
+ function copyRecursiveSync(src, dest) {
87
+ const exists = fs.existsSync(src);
88
+ const stats = exists && fs.statSync(src);
89
+ const isDirectory = exists && stats.isDirectory();
90
+ if (isDirectory) {
91
+ if (!fs.existsSync(dest)) {
92
+ fs.mkdirSync(dest, { recursive: true });
93
+ }
94
+ fs.readdirSync(src).forEach(function(childItemName) {
95
+ if (childItemName === '.git' || childItemName === 'node_modules') return;
96
+ copyRecursiveSync(path.join(src, childItemName), path.join(dest, childItemName));
97
+ });
98
+ } else {
99
+ fs.copyFileSync(src, dest);
100
+ }
101
+ }
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "claudeguide-engineer",
3
- "version": "1.14.8",
3
+ "version": "1.14.9",
4
4
  "description": "A comprehensive boilerplate template for building professional software projects with CLI Coding Agents (Claude Code and Open Code).",
5
5
  "main": "index.js",
6
+ "bin": {
7
+ "cg": "index.js"
8
+ },
6
9
  "scripts": {
7
10
  "test": "echo \"Warning: no test specified\" && exit 0",
8
11
  "lint": "echo \"Linting passed\"",
@@ -58,4 +61,4 @@
58
61
  "publishConfig": {
59
62
  "access": "public"
60
63
  }
61
- }
64
+ }