@the-bearded-bear/claude-craft 4.0.2 → 4.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/cli/index.js +11 -1
- package/package.json +1 -1
package/cli/index.js
CHANGED
|
@@ -33,6 +33,9 @@ const c = colors;
|
|
|
33
33
|
// CLI package root
|
|
34
34
|
const CLI_ROOT = path.resolve(__dirname, '..');
|
|
35
35
|
|
|
36
|
+
// Package version
|
|
37
|
+
const { version: VERSION } = require(path.join(CLI_ROOT, 'package.json'));
|
|
38
|
+
|
|
36
39
|
// Available technologies
|
|
37
40
|
const TECHNOLOGIES = {
|
|
38
41
|
symfony: { name: 'Symfony', desc: 'PHP backend with Clean Architecture, DDD, API Platform' },
|
|
@@ -118,7 +121,7 @@ ${c.cyan}${c.bold}║${c.reset} ${c.blue}${c.bold}╚██████╗█
|
|
|
118
121
|
${c.cyan}${c.bold}║${c.reset} ${c.blue}${c.bold} ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝${c.reset} ${c.cyan}${c.bold}║${c.reset}
|
|
119
122
|
${c.cyan}${c.bold}║${c.reset} ${c.cyan}${c.bold}║${c.reset}
|
|
120
123
|
${c.cyan}${c.bold}║${c.reset} ${c.dim}AI-Assisted Development Framework for Claude Code${c.reset} ${c.cyan}${c.bold}║${c.reset}
|
|
121
|
-
${c.cyan}${c.bold}║${c.reset} ${c.dim}Version
|
|
124
|
+
${c.cyan}${c.bold}║${c.reset} ${c.dim}Version ${VERSION}${c.reset}${' '.repeat(Math.max(0, 46 - VERSION.length))}${c.cyan}${c.bold}║${c.reset}
|
|
122
125
|
${c.cyan}${c.bold}║${c.reset} ${c.cyan}${c.bold}║${c.reset}
|
|
123
126
|
${c.cyan}${c.bold}╚═══════════════════════════════════════════════════════════════╝${c.reset}
|
|
124
127
|
`);
|
|
@@ -461,6 +464,13 @@ ${c.bold}Documentation:${c.reset}
|
|
|
461
464
|
// Main entry point
|
|
462
465
|
async run() {
|
|
463
466
|
const args = process.argv.slice(2);
|
|
467
|
+
|
|
468
|
+
// Handle --version and -v early
|
|
469
|
+
if (args.includes('--version') || args.includes('-v')) {
|
|
470
|
+
console.log(VERSION);
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
|
|
464
474
|
const { command, path: targetPath, options } = this.parseArgs(args);
|
|
465
475
|
|
|
466
476
|
// Apply options
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@the-bearded-bear/claude-craft",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "A comprehensive framework for AI-assisted development with Claude Code. Install standardized rules, agents, and commands for your projects.",
|
|
5
5
|
"main": "cli/index.js",
|
|
6
6
|
"bin": {
|