@the-bearded-bear/claude-craft 5.2.0 → 5.2.1-next.f8c01f3
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/Dev/scripts/install-angular-rules.sh +1 -1
- package/Dev/scripts/install-common-rules.sh +4 -4
- package/Dev/scripts/install-csharp-rules.sh +1 -1
- package/Dev/scripts/install-flutter-rules.sh +1 -1
- package/Dev/scripts/install-from-config.sh +41 -12
- package/Dev/scripts/install-laravel-rules.sh +1 -1
- package/Dev/scripts/install-php-rules.sh +1 -1
- package/Dev/scripts/install-python-rules.sh +1 -1
- package/Dev/scripts/install-react-rules.sh +1 -1
- package/Dev/scripts/install-reactnative-rules.sh +1 -1
- package/Dev/scripts/install-symfony-rules.sh +1 -1
- package/Dev/scripts/install-vuejs-rules.sh +1 -1
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ set -euo pipefail
|
|
|
37
37
|
#-------------------------------------------------------------------------------
|
|
38
38
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
39
39
|
SCRIPT_NAME="$(basename "$0")"
|
|
40
|
-
VERSION="5.2.
|
|
40
|
+
VERSION="5.2.1"
|
|
41
41
|
I18N_DIR="$(dirname "$SCRIPT_DIR")/i18n"
|
|
42
42
|
|
|
43
43
|
# Couleurs
|
|
@@ -536,9 +536,9 @@ install_claude_md() {
|
|
|
536
536
|
if [[ -d "$src_agents" ]]; then
|
|
537
537
|
while IFS= read -r agent_file; do
|
|
538
538
|
local agent_name
|
|
539
|
-
agent_name=$(grep -m1 "^name:" "$agent_file" 2>/dev/null | sed 's/^name:[[:space:]]*//' | tr -d '"')
|
|
539
|
+
agent_name=$(grep -m1 "^name:" "$agent_file" 2>/dev/null | sed 's/^name:[[:space:]]*//' | tr -d '"' || true)
|
|
540
540
|
local agent_desc
|
|
541
|
-
agent_desc=$(grep -m1 "^description:" "$agent_file" 2>/dev/null | sed 's/^description:[[:space:]]*//' | tr -d '"' | head -c 60)
|
|
541
|
+
agent_desc=$(grep -m1 "^description:" "$agent_file" 2>/dev/null | sed 's/^description:[[:space:]]*//' | tr -d '"' | head -c 60 || true)
|
|
542
542
|
if [[ -n "$agent_name" ]]; then
|
|
543
543
|
agents_list="${agents_list}- \`@${agent_name}\` - ${agent_desc}\n"
|
|
544
544
|
fi
|
|
@@ -557,7 +557,7 @@ install_claude_md() {
|
|
|
557
557
|
continue
|
|
558
558
|
fi
|
|
559
559
|
local cmd_desc
|
|
560
|
-
cmd_desc=$(grep -m1 "^description:" "$cmd_file" 2>/dev/null | sed 's/^description:[[:space:]]*//' | tr -d '"' | head -c 60)
|
|
560
|
+
cmd_desc=$(grep -m1 "^description:" "$cmd_file" 2>/dev/null | sed 's/^description:[[:space:]]*//' | tr -d '"' | head -c 60 || true)
|
|
561
561
|
if [[ -n "$cmd_desc" ]]; then
|
|
562
562
|
commands_list="${commands_list}- \`/common:${cmd_name}\` - ${cmd_desc}\n"
|
|
563
563
|
fi
|
|
@@ -444,12 +444,30 @@ get_install_script() {
|
|
|
444
444
|
reactnative)
|
|
445
445
|
script="${SCRIPT_DIR}/install-reactnative-rules.sh"
|
|
446
446
|
;;
|
|
447
|
+
angular)
|
|
448
|
+
script="${SCRIPT_DIR}/install-angular-rules.sh"
|
|
449
|
+
;;
|
|
450
|
+
csharp)
|
|
451
|
+
script="${SCRIPT_DIR}/install-csharp-rules.sh"
|
|
452
|
+
;;
|
|
453
|
+
laravel)
|
|
454
|
+
script="${SCRIPT_DIR}/install-laravel-rules.sh"
|
|
455
|
+
;;
|
|
456
|
+
vuejs)
|
|
457
|
+
script="${SCRIPT_DIR}/install-vuejs-rules.sh"
|
|
458
|
+
;;
|
|
459
|
+
php)
|
|
460
|
+
script="${SCRIPT_DIR}/install-php-rules.sh"
|
|
461
|
+
;;
|
|
447
462
|
common)
|
|
448
463
|
script="${SCRIPT_DIR}/install-common-rules.sh"
|
|
449
464
|
;;
|
|
450
465
|
project)
|
|
451
466
|
script="${SCRIPT_DIR}/../../Project/install-project-commands.sh"
|
|
452
467
|
;;
|
|
468
|
+
docker)
|
|
469
|
+
script="${SCRIPT_DIR}/../../Infra/install-infra-rules.sh"
|
|
470
|
+
;;
|
|
453
471
|
esac
|
|
454
472
|
|
|
455
473
|
echo "$script"
|
|
@@ -468,26 +486,37 @@ install_module() {
|
|
|
468
486
|
local script
|
|
469
487
|
script=$(get_install_script "$tech")
|
|
470
488
|
|
|
489
|
+
if [[ -z "$script" ]]; then
|
|
490
|
+
log_warning "Technologie '$tech' n'a pas de script d'installation configuré"
|
|
491
|
+
return 0
|
|
492
|
+
fi
|
|
493
|
+
|
|
471
494
|
if [[ ! -f "$script" ]]; then
|
|
472
495
|
log_error "Script d'installation introuvable: $script"
|
|
473
496
|
return 1
|
|
474
497
|
fi
|
|
475
498
|
|
|
476
|
-
# Construire les options
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
if [[ "$
|
|
482
|
-
opts
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
499
|
+
# Construire les options selon les capacités de chaque script
|
|
500
|
+
# - "project" : --lang, --skip-common uniquement
|
|
501
|
+
# - "docker" : --install, --force, --backup, --lang (pas --preserve-config ni --skip-common)
|
|
502
|
+
# - autres : --install, --force, --preserve-config, --backup, --lang, --skip-common
|
|
503
|
+
local opts=()
|
|
504
|
+
if [[ "$tech" != "project" ]]; then
|
|
505
|
+
opts=("--install")
|
|
506
|
+
if [[ "$force_mode" == "true" ]]; then
|
|
507
|
+
opts=("--force")
|
|
508
|
+
fi
|
|
509
|
+
if [[ "$preserve_config" == "true" && "$tech" != "docker" ]]; then
|
|
510
|
+
opts+=("--preserve-config")
|
|
511
|
+
fi
|
|
512
|
+
if [[ "$backup_mode" == "true" ]]; then
|
|
513
|
+
opts+=("--backup")
|
|
514
|
+
fi
|
|
486
515
|
fi
|
|
487
516
|
# Ajouter la langue
|
|
488
517
|
opts+=("--lang=$lang")
|
|
489
|
-
# Skip common si multi-tech (2ème+ technologie)
|
|
490
|
-
if [[ -n "$skip_common" ]]; then
|
|
518
|
+
# Skip common si multi-tech (2ème+ technologie) - pas supporté par project et docker
|
|
519
|
+
if [[ -n "$skip_common" && "$tech" != "project" && "$tech" != "docker" ]]; then
|
|
491
520
|
opts+=("$skip_common")
|
|
492
521
|
fi
|
|
493
522
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@the-bearded-bear/claude-craft",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.1-next.f8c01f3",
|
|
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": {
|