repo-nexus 0.4.4 → 0.4.5

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/package.json +1 -1
  2. package/rnex +10 -30
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repo-nexus",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Lightweight, zero-dependency Virtual Meta-Repo companion for multi-repo workspaces and shared AI context (no git submodules)",
5
5
  "bin": {
6
6
  "repo-nexus": "rnex",
package/rnex CHANGED
@@ -509,7 +509,10 @@ resolve_repo_path() {
509
509
  fi
510
510
  }
511
511
 
512
- ensure_repos_dir() { mkdir -p "$REPOS_DIR"; }
512
+ ensure_repos_dir() {
513
+ mkdir -p "$REPOS_DIR"
514
+ [ -f "$REPOS_DIR/.gitkeep" ] || touch "$REPOS_DIR/.gitkeep"
515
+ }
513
516
 
514
517
  # ---- Member Repo .rnex Isolation ------------------------------------------
515
518
 
@@ -956,42 +959,19 @@ YAML_EOF
956
959
  # ---- 2. Merge routing instructions into AGENTS.md -------------------------
957
960
  _target_agents="$_target_dir/AGENTS.md"
958
961
  merge_rnex_instructions "$_target_agents"
962
+ [ -f "$_target_dir/CLAUDE.md" ] && merge_rnex_instructions "$_target_dir/CLAUDE.md"
963
+ [ -f "$_target_dir/.cursorrules" ] && merge_rnex_instructions "$_target_dir/.cursorrules"
959
964
 
960
- # ---- 3. Interactive assistant setup (if TTY and not -y) -------------------
961
- if [ "$_non_interactive" -eq 0 ] && [ -t 0 ] && [ -t 1 ]; then
962
- printf '\n%bOptional AI Assistant Routing Files:%b\n' "$_BOLD" "$_NC"
963
- printf 'Would you like to generate routing files for other assistants?\n'
964
- printf ' [1] Claude Code (CLAUDE.md)\n'
965
- printf ' [2] Cursor (.cursorrules)\n'
966
- printf ' [3] Both (CLAUDE.md & .cursorrules)\n'
967
- printf ' [Enter to skip]\n'
968
- printf 'Choice [1/2/3/skip]: '
969
- read -r _choice || _choice=""
970
- case "$_choice" in
971
- 1)
972
- merge_rnex_instructions "$_target_dir/CLAUDE.md"
973
- ;;
974
- 2)
975
- merge_rnex_instructions "$_target_dir/.cursorrules"
976
- ;;
977
- 3)
978
- merge_rnex_instructions "$_target_dir/CLAUDE.md"
979
- merge_rnex_instructions "$_target_dir/.cursorrules"
980
- ;;
981
- *)
982
- ;;
983
- esac
984
- fi
985
-
986
- # ---- 4. Create repos directory -------------------------------------------
965
+ # ---- 3. Create repos directory with .gitkeep -----------------------------
987
966
  _repos_dir="$_target_dir/repos"
988
967
  mkdir -p "$_repos_dir"
968
+ [ -f "$_repos_dir/.gitkeep" ] || touch "$_repos_dir/.gitkeep"
989
969
 
990
- # ---- 5. Create internal .rnex directory ----------------------------------
970
+ # ---- 4. Create internal .rnex directory ----------------------------------
991
971
  mkdir -p "$_target_dir/.rnex"
992
972
  mkdir -p "$_target_dir/.rnex/plugins"
993
973
 
994
- # ---- 6. Ensure repos/, .rnex/, and local configs are gitignored ---------
974
+ # ---- 5. Ensure repos/, .rnex/, and local configs are gitignored ---------
995
975
  reconcile_gitignore "$_target_dir"
996
976
 
997
977
  if [ "$_config_created" -eq 1 ]; then