ai-global 1.12.0 → 1.13.0

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.
Files changed (2) hide show
  1. package/ai-global +9 -2
  2. package/package.json +1 -1
package/ai-global CHANGED
@@ -15,7 +15,7 @@ COMMANDS_DIR="$CONFIG_DIR/commands"
15
15
  PROMPTS_DIR="$CONFIG_DIR/prompts"
16
16
 
17
17
  # Version
18
- VERSION="1.12.0"
18
+ VERSION="1.13.0"
19
19
 
20
20
  # Colors
21
21
  RED='\033[0;31m'
@@ -400,9 +400,16 @@ collect_instructions() {
400
400
  fi
401
401
  done
402
402
 
403
+ # Skip if global.md already exists
404
+ if [[ -f "$GLOBAL_MD" ]]; then
405
+ log_ok "Preserved existing $GLOBAL_MD (skipped merge)"
406
+ return
407
+ fi
408
+
409
+ # Only create and merge if global.md doesn't exist
403
410
  if [[ $found_count -gt 0 ]]; then
404
411
  echo -e "$merged_content" > "$GLOBAL_MD"
405
- log_ok "Merged instructions from $found_count tool(s)"
412
+ log_ok "Merged instructions from $found_count tool(s) to $GLOBAL_MD"
406
413
  else
407
414
  cat > "$GLOBAL_MD" << 'EOF'
408
415
  # AI Assistant Instructions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-global",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "Unified configuration manager for AI coding assistants",
5
5
  "bin": {
6
6
  "ai-global": "ai-global"