repo-nexus 0.3.4 → 0.3.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.
package/README.md CHANGED
@@ -176,8 +176,8 @@ rnex hide my-app
176
176
  # Restore a hidden repo back to active scope
177
177
  rnex show my-app
178
178
 
179
- # Reconcile all scope links, plugins, and member .rnex/ directories
180
- rnex sync
179
+ # Reconcile and fix all scope links, plugins, and member .rnex/ directories (alias: sync)
180
+ rnex fix
181
181
 
182
182
  # Unregister a repository (removes scope link & member .rnex assets)
183
183
  rnex remove my-app
@@ -288,7 +288,7 @@ repos:
288
288
  | `rnex rnex-dir <enable\|disable> <name>` | Toggle `.rnex/` directory integration for a member repository |
289
289
  | `rnex show <name>` | Make a hidden repo visible in workspace |
290
290
  | `rnex hide <name>` | Hide a repo from active workspace indexing |
291
- | `rnex sync` | Reconcile all scope symlinks, plugins, and member `.rnex/` directories |
291
+ | `rnex fix` (or `sync`) | Reconcile and fix all scope symlinks, plugins, and member `.rnex/` directories |
292
292
 
293
293
  ---
294
294
 
package/docs/FAQ.md CHANGED
@@ -259,7 +259,7 @@ In your Repo Nexus workspace repository:
259
259
  If you move a repository, clone a workspace on a new machine, or notice missing symlinks, run:
260
260
 
261
261
  ```bash
262
- rnex sync
262
+ rnex fix
263
263
  ```
264
264
 
265
265
  This command reconciles all scope symlinks, active plugins, and member `.rnex/` directories defined in `rnex.yaml`, repairing broken links and ensuring your workspace is healthy. To inspect the current status, run:
@@ -8,7 +8,7 @@
8
8
  # 2. Local Config (.local.rnex.yaml): Machine-specific (gitignored), overrides/provides
9
9
  # local member repo paths and developer-specific plugin settings.
10
10
  #
11
- # Place it in your workspace root directory and run `rnex sync` to apply.
11
+ # Place it in your workspace root directory and run `rnex fix` to apply.
12
12
  #
13
13
  # For more information: https://github.com/nu-nenoi/repo-nexus
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repo-nexus",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Lightweight, zero-dependency companion tool for multi-repo workspaces and shared AI context via symlinks (no git submodules)",
5
5
  "bin": {
6
6
  "repo-nexus": "rnex",
package/rnex CHANGED
@@ -907,7 +907,7 @@ cmd_init() {
907
907
  if [ -f "$_target_yaml" ]; then
908
908
  log_warn "Workspace configuration already exists at $_target_dir ($RNEX_CONFIG_FILE exists)"
909
909
  log_dim "To reconcile symlinks and plugins, run:"
910
- log_dim " rnex sync"
910
+ log_dim " rnex fix"
911
911
  else
912
912
  cat > "$_target_yaml" <<YAML_EOF
913
913
  # Repo Nexus workspace configuration
@@ -1203,10 +1203,10 @@ cmd_status() {
1203
1203
  printf ' %b●%b %-22s %bactive%b%b → %s%b\n' "$_G" "$_NC" "$_name" "$_G" "$_NC" "$_rnex_tag" "$_path" "$_src_tag"
1204
1204
  elif [ -L "$_link" ]; then
1205
1205
  printf ' %b✗%b %-22s %bBROKEN LINK%b%b → %s%b\n' "$_R" "$_NC" "$_name" "$_R" "$_NC" "$_rnex_tag" "$_path" "$_src_tag"
1206
- printf ' %b↳ Suggestion: run '\''rnex sync'\'' to recreate scope link%b\n' "$_Y" "$_NC"
1206
+ printf ' %b↳ Suggestion: run '\''rnex fix'\'' to recreate scope link%b\n' "$_Y" "$_NC"
1207
1207
  else
1208
1208
  printf ' %b✗%b %-22s %bMISSING LINK%b%b → %s%b\n' "$_R" "$_NC" "$_name" "$_R" "$_NC" "$_rnex_tag" "$_path" "$_src_tag"
1209
- printf ' %b↳ Suggestion: run '\''rnex sync'\'' to create scope link%b\n' "$_Y" "$_NC"
1209
+ printf ' %b↳ Suggestion: run '\''rnex fix'\'' to create scope link%b\n' "$_Y" "$_NC"
1210
1210
  fi
1211
1211
  done
1212
1212
  fi
@@ -1218,11 +1218,11 @@ cmd_status() {
1218
1218
  printf '\n'
1219
1219
  }
1220
1220
 
1221
- cmd_sync() {
1221
+ cmd_fix() {
1222
1222
  require_workspace
1223
1223
  ensure_repos_dir
1224
1224
 
1225
- log_info "Synchronizing workspace from $(basename "$WORKSPACE_YAML")..."
1225
+ log_info "Fixing and reconciling workspace from $(basename "$WORKSPACE_YAML")..."
1226
1226
  sync_plugins
1227
1227
 
1228
1228
  yaml_list_repos | while read -r _name; do
@@ -1278,7 +1278,11 @@ cmd_sync() {
1278
1278
  sync_repo_rnex "$_name"
1279
1279
  done
1280
1280
 
1281
- log_ok "Sync complete — all scope links, plugins, and member .rnex directories reconciled"
1281
+ log_ok "Fix complete — all scope links, plugins, and member .rnex directories reconciled"
1282
+ }
1283
+
1284
+ cmd_sync() {
1285
+ cmd_fix "$@"
1282
1286
  }
1283
1287
 
1284
1288
  cmd_plugin_list() {
@@ -1437,7 +1441,7 @@ cmd_plugin_enable() {
1437
1441
  log_dim "Added '$RNEX_LOCAL_CONFIG_FILE' to .gitignore"
1438
1442
  fi
1439
1443
 
1440
- cmd_sync
1444
+ cmd_fix
1441
1445
  log_ok "Plugin '$_name' active in workspace"
1442
1446
  }
1443
1447
 
@@ -1609,7 +1613,7 @@ cmd_help() {
1609
1613
  WORKSPACE & SYSTEM SETUP
1610
1614
  init [dir] Initialize a new Repo Nexus workspace in current (or specified) dir
1611
1615
  install [dir] Install rnex & repo-nexus globally into ~/.local/bin (or custom dir)
1612
- sync Reconcile scope links, plugins & member .rnex/ directories
1616
+ fix Reconcile and fix scope links, plugins & member .rnex/ directories (alias: sync)
1613
1617
 
1614
1618
  REPO MANAGEMENT
1615
1619
  add [--local] [--no-rnex-dir] <name> <path> Register member repo (--local writes to .local.rnex.yaml)
@@ -1641,7 +1645,7 @@ cmd_help() {
1641
1645
  rnex plugin enable karpathy-llm # Enable Karpathy LLM plugin
1642
1646
  rnex hide my-app # Temporarily hide from active indexing
1643
1647
  rnex show my-app # Bring back into active scope
1644
- rnex sync # Reconcile all links from config
1648
+ rnex fix # Reconcile and fix all links from config (alias: sync)
1645
1649
 
1646
1650
  EOF
1647
1651
  }
@@ -1687,7 +1691,7 @@ case "${1:-help}" in
1687
1691
  list) shift; cmd_list "$@" ;;
1688
1692
  status) shift; cmd_status "$@" ;;
1689
1693
  rnex-dir) shift; cmd_rnex_dir "$@" ;;
1690
- sync) shift; cmd_sync "$@" ;;
1694
+ fix|sync) shift; cmd_fix "$@" ;;
1691
1695
  plugin) shift; cmd_plugin "$@" ;;
1692
1696
  version|-v|--version) cmd_version ;;
1693
1697
  help|-h|--help) cmd_help ;;
@@ -106,7 +106,7 @@ This command:
106
106
  1. Adds `karpathy-llm` to `plugins:` in `rnex.yaml`.
107
107
  2. Copies initial templates (`wiki/index.md`, `wiki/_log.md`, `wiki/hot.md`, `raw/.gitkeep`, `.rnex/templates/wiki-page.template.md`, `.rnex/templates/LLM_WIKI.sample.md`).
108
108
  3. Links `KARPATHY_RULES.md` and workflows into `.rnex/rules/` and `.rnex/workflows/`.
109
- 4. Syncs scope links and AI context files across all registered member repositories via `rnex sync`.
109
+ 4. Syncs scope links and AI context files across all registered member repositories via `rnex fix`.
110
110
 
111
111
  ### Option 2: Declarative in `rnex.yaml`
112
112
 
@@ -117,10 +117,10 @@ plugins:
117
117
  karpathy-llm: {}
118
118
  ```
119
119
 
120
- Then synchronize:
120
+ Then reconcile and fix:
121
121
 
122
122
  ```bash
123
- rnex sync
123
+ rnex fix
124
124
  ```
125
125
 
126
126
  ---